null check

This commit is contained in:
Peter Clement 2024-01-11 11:20:37 +00:00
parent bbdd3f017f
commit c01abe4c6f
1 changed files with 4 additions and 3 deletions

View File

@ -21,9 +21,10 @@
}
$: if (value?.automationId == null) value = { automationId: "" }
$: automationFields = $automationStore.automations.find(
automation => automation._id === value?.automationId
)?.definition?.trigger?.inputs?.fields
$: automationFields =
$automationStore.automations.find(
automation => automation._id === value?.automationId
)?.definition?.trigger?.inputs?.fields || []
$: filteredAutomations = $automationStore.automations.filter(
automation =>