From 8e41c2b18633cc5d8e43a08a37dc18a652d9d116 Mon Sep 17 00:00:00 2001 From: Lily Kuang Date: Mon, 12 Oct 2020 09:11:00 -0700 Subject: [PATCH] fix(dataset): update user list endpoint (#11221) --- superset-frontend/src/datasource/DatasourceEditor.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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}`, })) } />