Rename toggle to boolean.

This commit is contained in:
comfyanonymous 2023-08-01 03:08:35 -04:00
parent eb5191f911
commit 38cfba0430
1 changed files with 2 additions and 1 deletions

View File

@ -279,7 +279,7 @@ export const ComfyWidgets = {
),
};
},
TOGGLE(node, inputName, inputData) {
BOOLEAN(node, inputName, inputData) {
let defaultVal = inputData[1]["default"];
return {
widget: node.addWidget(
@ -287,6 +287,7 @@ export const ComfyWidgets = {
inputName,
defaultVal,
() => {},
{"on": inputData[1].label_on, "off": inputData[1].label_off}
)
};
},