Skip to content

Commit

Permalink
fix: improve condition
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgrozav committed Aug 28, 2024
1 parent 72b2fe6 commit 76ad450
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/editor-ui/src/components/canvas/WorkflowCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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];
});
Expand Down

0 comments on commit 76ad450

Please sign in to comment.