From 1454ddacb85742ff146a518e339e521a25c7d533 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sun, 25 Sep 2022 20:10:56 +0200 Subject: [PATCH] fix --- packages/web/src/query/AceEditor.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/web/src/query/AceEditor.svelte b/packages/web/src/query/AceEditor.svelte index f3e02e83..ace8344b 100644 --- a/packages/web/src/query/AceEditor.svelte +++ b/packages/web/src/query/AceEditor.svelte @@ -305,6 +305,8 @@ } function updateAnnotations() { + if (!mode?.includes('sql')) return; + editor?.session?.setAnnotations([ ...(queryParts || []) .filter(part => !(errorMessages || []).find(err => err.line == part.trimStart.line))