From bb4fd4c14c44211e1cc9c62f825e75d823d6f63b Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 18 Jul 2024 17:19:34 +0200 Subject: [PATCH] Fix possible undefined reference --- .../automation/AutomationBuilder/FlowChart/TestDataModal.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/TestDataModal.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/TestDataModal.svelte index 7d223299c7..2a553f8b48 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/TestDataModal.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/TestDataModal.svelte @@ -81,7 +81,7 @@ // Check the schema to see if required fields have been entered $: isError = !isTriggerValid(trigger) || - !trigger.schema.outputs.required.every( + !trigger.schema.outputs.required?.every( required => $memoTestData?.[required] || required !== "row" )