Unverified Commit 0ad873e3 authored by yangzehan's avatar yangzehan Committed by GitHub

Fix query not refreshing (#2642)

* Fix query not refreshing * Fix centerContentHeight It will not be able to be updated due to the deletion of the label
parent fdab9696
...@@ -177,6 +177,7 @@ const HeaderContainer = (props: any) => { ...@@ -177,6 +177,7 @@ const HeaderContainer = (props: any) => {
}); });
await SuccessMessageAsync(l('pages.datastudio.editor.exec.success')); await SuccessMessageAsync(l('pages.datastudio.editor.exec.success'));
currentData.status = JOB_STATUS.RUNNING; currentData.status = JOB_STATUS.RUNNING;
if (currentTab) currentTab.console.result = res.data.result;
saveTabs({ ...props.tabs }); saveTabs({ ...props.tabs });
}; };
......
...@@ -136,7 +136,7 @@ const DataStudio = (props: any) => { ...@@ -136,7 +136,7 @@ const DataStudio = (props: any) => {
const centerContentHeight = size.contentHeight - newBottomHeight; const centerContentHeight = size.contentHeight - newBottomHeight;
updateCenterContentHeight(centerContentHeight); updateCenterContentHeight(centerContentHeight);
updateToolContentHeight(centerContentHeight - VIEW.leftMargin); updateToolContentHeight(centerContentHeight - VIEW.leftMargin);
}, [activeKey]); }, [activeKey,panes]);
useEffect(() => { useEffect(() => {
loadData(); loadData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment