Browse Source

allow converting optional widgets to inputs

pull/329/head
hnmr293 2 years ago
parent
commit
04b42bad87
  1. 2
      web/extensions/core/widgetInputs.js

2
web/extensions/core/widgetInputs.js

@ -101,7 +101,7 @@ app.registerExtension({
callback: () => convertToWidget(this, w),
});
} else {
const config = nodeData?.input?.required[w.name] || [w.type, w.options || {}];
const config = nodeData?.input?.required[w.name] || nodeData?.input?.optional?.[w.name] || [w.type, w.options || {}];
if (isConvertableWidget(w, config)) {
toInput.push({
content: `Convert ${w.name} to input`,

Loading…
Cancel
Save