From bd2d1f50d27b95f75dac2276df6e87b31174d9c9 Mon Sep 17 00:00:00 2001 From: Ewin Hong Date: Tue, 11 Jun 2024 14:23:36 -0400 Subject: [PATCH] on 7th time this check is evaluated, it throws a undefined --- lib/common/pre.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }