Skip to content

Commit

Permalink
fix(dataset): update user list endpoint (apache#11221)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lily Kuang authored and auxten committed Nov 20, 2020
1 parent 78b366e commit 8e41c2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions superset-frontend/src/datasource/DatasourceEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -527,12 +527,12 @@ class DatasourceEditor extends React.PureComponent {
description={t('Owners of the dataset')}
control={
<SelectAsyncControl
dataEndpoint="/users/api/read"
dataEndpoint="api/v1/dataset/related/owners"
multi
mutator={data =>
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}`,
}))
}
/>
Expand Down

0 comments on commit 8e41c2b

Please sign in to comment.