resolve variable from http node

This commit is contained in:
Henry 2025-05-28 01:32:39 +01:00
parent 7ef0e99eb2
commit ec32582b05
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)