mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-04 15:10:06 +00:00
Fix SubgraphNode widget values ignored (#4429)
This commit is contained in:
@@ -145,6 +145,13 @@ export const graphToPrompt = async (
|
||||
const resolvedInput = node.resolveInput(i)
|
||||
if (!resolvedInput) continue
|
||||
|
||||
// Input resolved to a SubgraphNode widget
|
||||
const { value } = resolvedInput
|
||||
if (value) {
|
||||
inputs[input.name] = Array.isArray(value) ? { __value__: value } : value
|
||||
continue
|
||||
}
|
||||
|
||||
inputs[input.name] = [
|
||||
String(resolvedInput.origin_id),
|
||||
// @ts-expect-error link.origin_slot is already number.
|
||||
|
||||
Reference in New Issue
Block a user