Explorar o código

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

Ahmad Kholid %!s(int64=3) %!d(string=hai) anos
pai
achega
ad8a545b02
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 
   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);
 }