From 466cdc4dc5e2788052743e9721a4503b4e18a6ca Mon Sep 17 00:00:00 2001 From: Midhun G S Date: Fri, 28 Apr 2023 16:03:05 +0530 Subject: [PATCH] Fix for GDS blank screen on create (#6183) --- frontend/src/Editor/DataSourceManager/DataSourceManager.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 });