From e07b5d4f30ea79a99caac4fb63a9ab1f17eaaf74 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 27 Jun 2022 23:16:59 +0200 Subject: [PATCH] fix: insert getResource proper parenthesis --- frontend/src/lib/components/ScriptEditor.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/ScriptEditor.svelte b/frontend/src/lib/components/ScriptEditor.svelte index 2608d74e56..0a2df265e8 100644 --- a/frontend/src/lib/components/ScriptEditor.svelte +++ b/frontend/src/lib/components/ScriptEditor.svelte @@ -338,7 +338,7 @@ `import * as wmill from 'https://deno.land/x/windmill@v${__pkg__.version}/index.ts'\n` ) } - getEditor().insertAtCursor(`(await wmill.getResource('${path})')`) + getEditor().insertAtCursor(`(await wmill.getResource('${path}'))`) } else { if (!getEditor().getCode().includes('import wmill')) { getEditor().insertAtBeginning('import wmill\n')