diff --git a/superset-frontend/src/datasource/DatasourceEditor.jsx b/superset-frontend/src/datasource/DatasourceEditor.jsx index 72037fdf0265d..86d59a5be635b 100644 --- a/superset-frontend/src/datasource/DatasourceEditor.jsx +++ b/superset-frontend/src/datasource/DatasourceEditor.jsx @@ -527,12 +527,12 @@ class DatasourceEditor extends React.PureComponent { description={t('Owners of the dataset')} control={ - data.pks.map((pk, i) => ({ - value: pk, - label: `${data.result[i].first_name} ${data.result[i].last_name}`, + data.result.map(pk => ({ + value: pk.value, + label: `${pk.text}`, })) } />