mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 10:28:59 +08:00
fix: get property of string type variable caused page crash (#12969)
This commit is contained in:
parent
fd4afe09f8
commit
f565f08aa0
@ -546,7 +546,9 @@ export const getVarType = ({
|
|||||||
else {
|
else {
|
||||||
(valueSelector as ValueSelector).slice(1).forEach((key, i) => {
|
(valueSelector as ValueSelector).slice(1).forEach((key, i) => {
|
||||||
const isLast = i === valueSelector.length - 2
|
const isLast = i === valueSelector.length - 2
|
||||||
|
if (Array.isArray(curr))
|
||||||
curr = curr?.find((v: any) => v.variable === key)
|
curr = curr?.find((v: any) => v.variable === key)
|
||||||
|
|
||||||
if (isLast) {
|
if (isLast) {
|
||||||
type = curr?.type
|
type = curr?.type
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user