mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 08:02:26 +00:00
fix: insert getResource proper parenthesis
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user