fixes: ref:#4703 and open datasource connection form bug from leftsidebar datasource popup (#4725)

This commit is contained in:
Arpit 2022-11-07 14:31:53 +05:30 committed by GitHub
parent 494fa0015a
commit 0db36bb7d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,14 +214,11 @@ class DataSourceManagerComponent extends React.Component {
};
handleBackToAllDatasources = () => {
this.setState(
{
queryString: null,
filteredDatasources: [],
activeDatasourceList: '#alldatasources',
},
() => this.onExit()
);
this.setState({
queryString: null,
filteredDatasources: [],
activeDatasourceList: '#alldatasources',
});
};
updateSuggestedDatasources = () => {
@ -606,7 +603,7 @@ class DataSourceManagerComponent extends React.Component {
<div
className={`back-btn me-3 ${this.props.darkMode ? 'dark' : ''}`}
role="button"
onClick={() => this.setState({ selectedDataSource: false })}
onClick={() => this.setState({ selectedDataSource: false }, () => this.onExit())}
>
<img className="m-0" src="assets/images/icons/back.svg" width="30" height="30" />
</div>