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

View File

@ -198,8 +198,9 @@ 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)
.includes(user.userId);
isUserAdmin(user); isUserAdmin(user);
const editText = t('Edit dataset'); const editText = t('Edit dataset');