mirror of https://github.com/apache/superset.git
fix(dataset): update user list endpoint (#11221)
This commit is contained in:
parent
9e9dac68f7
commit
8e58730092
|
@ -527,12 +527,12 @@ class DatasourceEditor extends React.PureComponent {
|
||||||
description={t('Owners of the dataset')}
|
description={t('Owners of the dataset')}
|
||||||
control={
|
control={
|
||||||
<SelectAsyncControl
|
<SelectAsyncControl
|
||||||
dataEndpoint="/users/api/read"
|
dataEndpoint="api/v1/dataset/related/owners"
|
||||||
multi
|
multi
|
||||||
mutator={data =>
|
mutator={data =>
|
||||||
data.pks.map((pk, i) => ({
|
data.result.map(pk => ({
|
||||||
value: pk,
|
value: pk.value,
|
||||||
label: `${data.result[i].first_name} ${data.result[i].last_name}`,
|
label: `${pk.text}`,
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue