From 76ad45056714fb8a6502678120555848c42fa7b2 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Wed, 28 Aug 2024 12:50:35 +0300 Subject: [PATCH] fix: improve condition --- packages/editor-ui/src/components/canvas/WorkflowCanvas.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/editor-ui/src/components/canvas/WorkflowCanvas.vue b/packages/editor-ui/src/components/canvas/WorkflowCanvas.vue index 5853093e299ce..237b2e29e209e 100644 --- a/packages/editor-ui/src/components/canvas/WorkflowCanvas.vue +++ b/packages/editor-ui/src/components/canvas/WorkflowCanvas.vue @@ -35,9 +35,8 @@ const workflowObject = toRef(props, 'workflowObject'); const nodes = computed(() => { const stickyNoteNodes = props.workflow.nodes.filter((node) => node.type === STICKY_NODE_TYPE); - const nonStickyNoteNodes = props.workflow.nodes.filter((node) => node.type !== STICKY_NODE_TYPE); - return nonStickyNoteNodes.length > 0 + return props.workflow.nodes.length > stickyNoteNodes.length ? props.workflow.nodes : [...props.fallbackNodes, ...stickyNoteNodes]; });