mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 10:42:44 +00:00
Fix cannot check widget value if undefined (#4433)
This commit is contained in:
@@ -145,9 +145,9 @@ export const graphToPrompt = async (
|
|||||||
const resolvedInput = node.resolveInput(i)
|
const resolvedInput = node.resolveInput(i)
|
||||||
if (!resolvedInput) continue
|
if (!resolvedInput) continue
|
||||||
|
|
||||||
// Input resolved to a SubgraphNode widget
|
// Resolved to an actual widget value rather than a node connection
|
||||||
const { value } = resolvedInput
|
if (resolvedInput.widgetInfo) {
|
||||||
if (value) {
|
const { value } = resolvedInput.widgetInfo
|
||||||
inputs[input.name] = Array.isArray(value) ? { __value__: value } : value
|
inputs[input.name] = Array.isArray(value) ? { __value__: value } : value
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user