Bugfix/Resolve variable from http node (#4518)

resolve variable from http node
This commit is contained in:
Henry Heng 2025-05-28 01:47:04 +01:00 committed by GitHub
parent 7ef0e99eb2
commit 2baa43d66f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -344,7 +344,8 @@ export const resolveVariables = async (
: undefined
if (nodeData && nodeData.data) {
// Replace the reference with actual value
const actualValue = (nodeData.data['output'] as ICommonObject)?.content
const nodeOutput = nodeData.data['output'] as ICommonObject
const actualValue = nodeOutput?.content ?? nodeOutput?.http?.data
// For arrays and objects, stringify them to prevent toString() conversion issues
const formattedValue =
Array.isArray(actualValue) || (typeof actualValue === 'object' && actualValue !== null)