Fix cannot check widget value if undefined (#4433)

This commit is contained in:
filtered
2025-07-12 09:05:58 +10:00
committed by GitHub
parent f0bc4c6959
commit 01c735d943

View File

@@ -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
}