Skip to content

Commit

Permalink
set initialQuantity default to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaRiewesell committed Aug 19, 2024
1 parent 895a298 commit 7532eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/rete/nodes/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class ActionNode
)
this.addControl(
"quantity",
new Classic.InputControl("number", { initial: initialQuantity, change: changeQuantity })
new Classic.InputControl("number", { initial: initialQuantity || 1, change: changeQuantity })
)
}

Expand Down

0 comments on commit 7532eab

Please sign in to comment.