From d1b5faa67ec6394d6a04477f009cf81a5bf442fa Mon Sep 17 00:00:00 2001 From: Frederik Wagner Date: Sat, 22 Apr 2023 23:10:45 +0200 Subject: [PATCH] Fix old addOption call for SelectOption (#275) --- docs/custom-nodes.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/custom-nodes.md b/docs/custom-nodes.md index 4a87d020..b417cd02 100644 --- a/docs/custom-nodes.md +++ b/docs/custom-nodes.md @@ -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" ] }); }