From b19144f7926520afa8b8ee5afeac20be0e247c6b Mon Sep 17 00:00:00 2001 From: Sunil Kumar Yadav <79906609+sunilyadav840@users.noreply.github.com> Date: Tue, 28 Dec 2021 01:11:42 +0530 Subject: [PATCH] Fixed querytab corresponding command bar (#1180) Co-authored-by: sunilyadav --- src/Explorer/Tabs/QueryTab/QueryTabComponent.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Explorer/Tabs/QueryTab/QueryTabComponent.tsx b/src/Explorer/Tabs/QueryTab/QueryTabComponent.tsx index 01865246f..605122eee 100644 --- a/src/Explorer/Tabs/QueryTab/QueryTabComponent.tsx +++ b/src/Explorer/Tabs/QueryTab/QueryTabComponent.tsx @@ -364,13 +364,11 @@ export default class QueryTabComponent extends React.Component { - if (!this.isCloseClicked) { - useCommandBar.getState().setContextButtons(this.getTabsButtons()); - } else { - this.isCloseClicked = false; - } - }, 0); + if (!this.isCloseClicked) { + useCommandBar.getState().setContextButtons(this.getTabsButtons()); + } else { + this.isCloseClicked = false; + } } public onExecuteQueryClick = async (): Promise => { @@ -875,9 +873,11 @@ export default class QueryTabComponent extends React.Component