mirror of https://github.com/langgenius/dify.git
fix: get property og string type cause page crash
This commit is contained in:
parent
1e73f63ff8
commit
234ed25656
|
|
@ -546,7 +546,8 @@ export const getVarType = ({
|
|||
else {
|
||||
(valueSelector as ValueSelector).slice(1).forEach((key, i) => {
|
||||
const isLast = i === valueSelector.length - 2
|
||||
curr = curr?.find((v: any) => v.variable === key)
|
||||
if (Array.isArray(curr))
|
||||
curr = curr?.find((v: any) => v.variable === key)
|
||||
if (isLast) {
|
||||
type = curr?.type
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue