mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
Show object widget values as string on missing nodes (#3294)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -51,7 +51,10 @@
|
|||||||
0.85,
|
0.85,
|
||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
""
|
"",
|
||||||
|
{
|
||||||
|
"foo": "bar"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
@@ -29,7 +29,12 @@ function addWidgetFromValue(node: LGraphNode, value: unknown) {
|
|||||||
name: 'UNKNOWN'
|
name: 'UNKNOWN'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
console.warn(`Unknown value type: ${typeof value}`)
|
widget = StringWidget(node, {
|
||||||
|
type: 'STRING',
|
||||||
|
name: 'UNKNOWN',
|
||||||
|
multiline: true
|
||||||
|
})
|
||||||
|
widget.value = JSON.stringify(value)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user