From 8e58730092f7ea80ae3b7e29aaa7074b137d3572 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 72037fdf02..86d59a5be6 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}`, })) } />