diff --git a/lib/common/pre.js b/lib/common/pre.js index 4e9b021..f527e08 100644 --- a/lib/common/pre.js +++ b/lib/common/pre.js @@ -13,10 +13,10 @@ function readPre(node, block, result = block) { continue; } const exec = event.script.exec; - if (exec.disabled) { + if (exec?.disabled) { continue; } - const logic = exec.join('\n').trim(); + const logic = exec?.join('\n').trim(); if (!logic) { continue; }