mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 05:01:10 +03:00
Update index.ts
This commit is contained in:
@@ -541,7 +541,7 @@ export const getVariableValue = (
|
|||||||
if (variableFullPathParts.length > 3) {
|
if (variableFullPathParts.length > 3) {
|
||||||
let variableObj = null
|
let variableObj = null
|
||||||
switch (typeof variableValue) {
|
switch (typeof variableValue) {
|
||||||
case 'string':
|
case 'string': {
|
||||||
const unEscapedVariableValue = handleEscapeCharacters(variableValue, true)
|
const unEscapedVariableValue = handleEscapeCharacters(variableValue, true)
|
||||||
if (unEscapedVariableValue.startsWith('{') && unEscapedVariableValue.endsWith('}')) {
|
if (unEscapedVariableValue.startsWith('{') && unEscapedVariableValue.endsWith('}')) {
|
||||||
try {
|
try {
|
||||||
@@ -551,9 +551,11 @@ export const getVariableValue = (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
case 'object':
|
}
|
||||||
|
case 'object': {
|
||||||
variableObj = variableValue
|
variableObj = variableValue
|
||||||
break
|
break
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user