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