resolve variable from http node
This commit is contained in:
parent
7ef0e99eb2
commit
ec32582b05
|
|
@ -344,7 +344,8 @@ export const resolveVariables = async (
|
||||||
: undefined
|
: undefined
|
||||||
if (nodeData && nodeData.data) {
|
if (nodeData && nodeData.data) {
|
||||||
// Replace the reference with actual value
|
// 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
|
// For arrays and objects, stringify them to prevent toString() conversion issues
|
||||||
const formattedValue =
|
const formattedValue =
|
||||||
Array.isArray(actualValue) || (typeof actualValue === 'object' && actualValue !== null)
|
Array.isArray(actualValue) || (typeof actualValue === 'object' && actualValue !== null)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue