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