Skip to content

Commit

Permalink
fix(editor): Add optional chaining to nodeExecutionRunData in node …
Browse files Browse the repository at this point in the history
…execution status (no-changelog) (#11370)
  • Loading branch information
alexgrozav authored Nov 1, 2024
1 parent 02b7736 commit 602355a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor-ui/src/components/Node.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';
});
Expand Down

0 comments on commit 602355a

Please sign in to comment.