From 602355a5c1234d3e5714787fb0b34e857a9a704a Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Fri, 1 Nov 2024 16:40:13 +0200 Subject: [PATCH] fix(editor): Add optional chaining to `nodeExecutionRunData` in node execution status (no-changelog) (#11370) --- packages/editor-ui/src/components/Node.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/Node.vue b/packages/editor-ui/src/components/Node.vue index 5e2cc7e8ca1fb..1f1ea90ab54a7 100644 --- a/packages/editor-ui/src/components/Node.vue +++ b/packages/editor-ui/src/components/Node.vue @@ -271,7 +271,7 @@ const nodeClass = computed(() => { const nodeExecutionStatus = computed(() => { const nodeExecutionRunData = workflowsStore.getWorkflowRunData?.[props.name]; if (nodeExecutionRunData) { - return nodeExecutionRunData.filter(Boolean)[0]?.executionStatus ?? ''; + return nodeExecutionRunData.filter(Boolean)?.[0]?.executionStatus ?? ''; } return ''; });