mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 14:27:40 +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:
@@ -29,7 +29,12 @@ function addWidgetFromValue(node: LGraphNode, value: unknown) {
|
||||
name: 'UNKNOWN'
|
||||
})
|
||||
} else {
|
||||
console.warn(`Unknown value type: ${typeof value}`)
|
||||
widget = StringWidget(node, {
|
||||
type: 'STRING',
|
||||
name: 'UNKNOWN',
|
||||
multiline: true
|
||||
})
|
||||
widget.value = JSON.stringify(value)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user