Skip to content

Commit 2baa43d

Browse files
authored
Bugfix/Resolve variable from http node (#4518)
resolve variable from http node
1 parent 7ef0e99 commit 2baa43d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/server/src/utils/buildAgentflow.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ export const resolveVariables = async (
344344
: undefined
345345
if (nodeData && nodeData.data) {
346346
// Replace the reference with actual value
347-
const actualValue = (nodeData.data['output'] as ICommonObject)?.content
347+
const nodeOutput = nodeData.data['output'] as ICommonObject
348+
const actualValue = nodeOutput?.content ?? nodeOutput?.http?.data
348349
// For arrays and objects, stringify them to prevent toString() conversion issues
349350
const formattedValue =
350351
Array.isArray(actualValue) || (typeof actualValue === 'object' && actualValue !== null)

0 commit comments

Comments
 (0)