Fix for GDS blank screen on create (#6183)

This commit is contained in:
Midhun G S 2023-04-28 16:03:05 +05:30 committed by GitHub
parent ec8e560af1
commit 466cdc4dc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,7 +190,7 @@ class DataSourceManagerComponent extends React.Component {
{ position: 'top-center' }
);
this.props.dataSourcesChanged(false, selectedDataSource);
this.props.globalDataSourcesChanged();
this.props.globalDataSourcesChanged && this.props.globalDataSourcesChanged();
})
.catch(({ error }) => {
this.setState({ isSaving: false });
@ -217,7 +217,7 @@ class DataSourceManagerComponent extends React.Component {
{ position: 'top-center' }
);
this.props.dataSourcesChanged(false, data);
this.props.globalDataSourcesChanged();
this.props.globalDataSourcesChanged && this.props.globalDataSourcesChanged();
})
.catch(({ error }) => {
this.setState({ isSaving: false });