fix: Alpha are unable to perform a second modification to a Dataset when in Explore (#20296)

* handle payload coming back from save

* address concerns
This commit is contained in:
Hugh A. Miles II 2022-06-08 16:24:36 +02:00 committed by GitHub
parent 80be1ce657
commit b6c11f2b97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -198,9 +198,10 @@ class DatasourceControl extends React.PureComponent {
const isSqlSupported = datasource.type === 'table'; const isSqlSupported = datasource.type === 'table';
const { user } = this.props; const { user } = this.props;
const allowEdit = const allowEdit = datasource.owners
datasource.owners.map(o => o.id).includes(user.userId) || .map(o => o.id || o.value)
isUserAdmin(user); .includes(user.userId);
isUserAdmin(user);
const editText = t('Edit dataset'); const editText = t('Edit dataset');