Skip to content

Commit 72a048f

Browse files
authored
fix(variables): fix double stringification (#1991)
1 parent fa18bef commit 72a048f

File tree

1 file changed

+4
-1
lines changed
  • apps/sim/executor/variables/resolvers

1 file changed

+4
-1
lines changed

apps/sim/executor/variables/resolvers/block.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,12 @@ export class BlockResolver implements Resolver {
159159

160160
if (blockType === 'response') {
161161
if (typeof value === 'string') {
162+
return value
163+
}
164+
if (Array.isArray(value) || (typeof value === 'object' && value !== null)) {
162165
return JSON.stringify(value)
163166
}
164-
return value
167+
return String(value)
165168
}
166169

167170
if (typeof value === 'object' && value !== null) {

0 commit comments

Comments
 (0)