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')