mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-15 17:05:14 -05:00
fix(variables): fix double stringification (#1991)
This commit is contained in:
committed by
GitHub
parent
fa18bef65b
commit
72a048f37d
@@ -159,9 +159,12 @@ export class BlockResolver implements Resolver {
|
||||
|
||||
if (blockType === 'response') {
|
||||
if (typeof value === 'string') {
|
||||
return value
|
||||
}
|
||||
if (Array.isArray(value) || (typeof value === 'object' && value !== null)) {
|
||||
return JSON.stringify(value)
|
||||
}
|
||||
return value
|
||||
return String(value)
|
||||
}
|
||||
|
||||
if (typeof value === 'object' && value !== null) {
|
||||
|
||||
Reference in New Issue
Block a user