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 dpgaspar committed Oct 12, 2020
1 parent c2e8f98 commit f0cd671
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 datasource')}
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 f0cd671

Please sign in to comment.