Update index.ts

pull/1820/head
YISH 2024-02-27 10:16:55 +08:00 committed by GitHub
parent 6a6cfb61fc
commit b7d01f10a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -561,7 +561,10 @@ export const getVariableValue = (
}
if (variableObj) {
variableObj = get(variableObj, variableFullPathParts.slice(3))
variableValue = handleEscapeCharacters(JSON.stringify(variableObj), false)
variableValue = handleEscapeCharacters(
typeof variableObj === 'object' ? JSON.stringify(variableObj) : variableObj,
false
)
}
}
if (isAcceptVariable) {