Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CB-4605 fix: sql editor shows datasets panels correctly #2347

Merged
merged 10 commits into from
Feb 5, 2024
4 changes: 2 additions & 2 deletions webapp/packages/plugin-sql-editor/src/SqlEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ export const SqlEditor = observer<Props>(function SqlEditor({ state }) {
<Loader suspense>
<CaptureView className={s(styles, { captureView: true })} view={sqlEditorView}>
<Split {...splitState} split="horizontal" sticky={30}>
<Pane className={s(styles, { pane: true })}>
<Pane className={s(styles, { pane: true })} basis="50%" main>
<SqlEditorLoader state={state} />
</Pane>
<ResizerControls />
<Pane className={s(styles, { pane: true })} basis="50%" main>
<Pane className={s(styles, { pane: true })}>
<Loader suspense>
<SqlResultTabs state={state} />
</Loader>
Expand Down
5 changes: 2 additions & 3 deletions webapp/packages/plugin-sql-editor/src/SqlEditor/SqlEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@ export const SqlEditor = observer<ISqlEditorProps>(function SqlEditor({ state, c

useEffect(() => {
if (isEditorEmpty) {
split.fixate('maximize', true);
split.state.setDisable(true);
} else if (split.state.disable) {
split.fixate('resize', false);
split.state.setSize(-1);
split.state.setDisable(false);
}
}, [isEditorEmpty]);

Expand Down
Loading