Browse Source

fix: fallback output doesn't show up when there's only one condition

Ahmad Kholid 3 years ago
parent
commit
ad8a545b02
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/block/BlockConditions.vue

+ 1 - 1
src/components/block/BlockConditions.vue

@@ -101,7 +101,7 @@ function addConditionEmit({ id }) {
   const { length } = block.data.conditions;
   const { length } = block.data.conditions;
 
 
   if (length >= 10) return;
   if (length >= 10) return;
-  if (length === 1) props.editor.addNodeOutput(block.id);
+  if (length === 0) props.editor.addNodeOutput(block.id);
 
 
   props.editor.addNodeOutput(block.id);
   props.editor.addNodeOutput(block.id);
 }
 }