fix: await scripts.list.promise
This commit is contained in:
parent
895da1a812
commit
3aa341370b
@ -33,7 +33,7 @@ export function getScript(doctype, view = 'Form') {
|
||||
}
|
||||
|
||||
async function setupScript(document, helpers = {}) {
|
||||
await scripts.promise
|
||||
await scripts.list.promise
|
||||
|
||||
let scriptDefs = doctypeScripts[doctype]
|
||||
if (!scriptDefs || Object.keys(scriptDefs).length === 0) return null
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user