Browse Source

allows convert to widget for boolean type (#1063)

pull/898/merge
Dr.Lt.Data 1 year ago committed by GitHub
parent
commit
9534f0f8a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web/extensions/core/widgetInputs.js

2
web/extensions/core/widgetInputs.js

@ -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]);

Loading…
Cancel
Save