Skip to content

Commit

Permalink
allows convert to widget for boolean type (#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
ltdrdata authored Aug 4, 2023
1 parent d134754 commit 9534f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/extensions/core/widgetInputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ComfyWidgets, addValueControlWidget } from "../../scripts/widgets.js";
import { app } from "../../scripts/app.js";

const CONVERTED_TYPE = "converted-widget";
const VALID_TYPES = ["STRING", "combo", "number"];
const VALID_TYPES = ["STRING", "combo", "number", "BOOLEAN"];

function isConvertableWidget(widget, config) {
return VALID_TYPES.includes(widget.type) || VALID_TYPES.includes(config[0]);
Expand Down

0 comments on commit 9534f0f

Please sign in to comment.