fix: check if setupForm exist
(cherry picked from commit 6da3761e76a5a8bbd2f3059b04790c5c73645c76)
This commit is contained in:
parent
d1a15e97f1
commit
1a1f0478f0
@ -152,6 +152,7 @@ export function setupAssignees(doc) {
|
||||
}
|
||||
|
||||
async function getFormScript(script, obj) {
|
||||
if (!script.includes('setupForm(')) return {}
|
||||
let scriptFn = new Function(script + '\nreturn setupForm')()
|
||||
let formScript = await scriptFn(obj)
|
||||
return formScript || {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user