diff --git a/packages/web/src/modals/ConfirmSqlModal.svelte b/packages/web/src/modals/ConfirmSqlModal.svelte index 49f861aa..62fcc75e 100644 --- a/packages/web/src/modals/ConfirmSqlModal.svelte +++ b/packages/web/src/modals/ConfirmSqlModal.svelte @@ -6,6 +6,7 @@ import FormProviderCore from '../forms/FormProviderCore.svelte'; import FormSubmit from '../forms/FormSubmit.svelte'; import FontIcon from '../icons/FontIcon.svelte'; + import newQuery from '../query/newQuery'; import SqlEditor from '../query/SqlEditor.svelte'; import ModalBase from './ModalBase.svelte'; @@ -119,6 +120,17 @@ }} /> + { + newQuery({ + initialData: sql, + }); + + closeCurrentModal(); + }} + />