diff --git a/frontend/src/Editor/DataSourceManager/DataSourceManager.jsx b/frontend/src/Editor/DataSourceManager/DataSourceManager.jsx index 1fbfa1d61b..f8321ee292 100644 --- a/frontend/src/Editor/DataSourceManager/DataSourceManager.jsx +++ b/frontend/src/Editor/DataSourceManager/DataSourceManager.jsx @@ -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 });