Skip to content

Commit

Permalink
Fix old addOption call for SelectOption (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
newcat authored Apr 22, 2023
1 parent 1aba872 commit d1b5faa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/custom-nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ export class MathNode extends Node {
this.addInputInterface("Number 1", "NumberOption", 1);
this.addInputInterface("Number 2", "NumberOption", 10);
this.addOutputInterface("Output");
this.addOption("Operation", "SelectOption", {
selected: "Add",
this.addOption("Operation", "SelectOption", "Add", undefined, {
items: [ "Add", "Subtract" ]
});
}
Expand Down

0 comments on commit d1b5faa

Please sign in to comment.