Skip to content

Commit 19eaf6e

Browse files
authored
Fix SubgraphNode widget values ignored (#4429)
1 parent 054077c commit 19eaf6e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/utils/executionUtil.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ export const graphToPrompt = async (
145145
const resolvedInput = node.resolveInput(i)
146146
if (!resolvedInput) continue
147147

148+
// Input resolved to a SubgraphNode widget
149+
const { value } = resolvedInput
150+
if (value) {
151+
inputs[input.name] = Array.isArray(value) ? { __value__: value } : value
152+
continue
153+
}
154+
148155
inputs[input.name] = [
149156
String(resolvedInput.origin_id),
150157
// @ts-expect-error link.origin_slot is already number.

0 commit comments

Comments
 (0)