From a57519b386dc547de4c8483357db3f180841aed0 Mon Sep 17 00:00:00 2001 From: Faton Ramadani Date: Wed, 31 Aug 2022 21:29:56 +0200 Subject: [PATCH] fix(frontend): Make sure the schema is infered when the component is mounted (#520) --- frontend/src/lib/components/ScriptEditor.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/lib/components/ScriptEditor.svelte b/frontend/src/lib/components/ScriptEditor.svelte index db65a952a5..10fb017d42 100644 --- a/frontend/src/lib/components/ScriptEditor.svelte +++ b/frontend/src/lib/components/ScriptEditor.svelte @@ -168,6 +168,7 @@ let syncCode: NodeJS.Timer onMount(() => { + inferSchema() syncCode = setInterval(() => { const newCode = editor?.getCode() if (newCode && code != newCode) {