mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-01 05:49:54 +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)
|
||||
if (!resolvedInput) continue
|
||||
|
||||
// Input resolved to a SubgraphNode widget
|
||||
const { value } = resolvedInput
|
||||
if (value) {
|
||||
// Resolved to an actual widget value rather than a node connection
|
||||
if (resolvedInput.widgetInfo) {
|
||||
const { value } = resolvedInput.widgetInfo
|
||||
inputs[input.name] = Array.isArray(value) ? { __value__: value } : value
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user