Inplace widget to input conversion (#2588)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2025-02-16 13:41:32 -05:00
committed by GitHub
parent 44498739fc
commit 3f4d11c63a
13 changed files with 45 additions and 19 deletions

View File

@@ -13,7 +13,6 @@ useExtensionService().registerExtension({
const widgets = node.widgets.filter((w) => w.dynamicPrompts)
for (const widget of widgets) {
// Override the serialization of the value to resolve dynamic prompts for all widgets supporting it in this node
// @ts-expect-error hacky override
widget.serializeValue = (workflowNode, widgetIndex) => {
if (typeof widget.value !== 'string') return widget.value