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
+2 -1
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)