mirror of https://github.com/langgenius/dify.git
fix: file type var match page crash
This commit is contained in:
parent
264f7c2139
commit
97056dad30
|
|
@ -421,7 +421,7 @@ const getIterationItemType = ({
|
|||
arrayType = curr?.type
|
||||
}
|
||||
else {
|
||||
if (curr?.type === VarType.object)
|
||||
if (curr?.type === VarType.object || curr?.type === VarType.file)
|
||||
curr = curr.children
|
||||
}
|
||||
})
|
||||
|
|
@ -516,7 +516,7 @@ export const getVarType = ({
|
|||
type = curr?.type
|
||||
}
|
||||
else {
|
||||
if (curr?.type === VarType.object)
|
||||
if (curr?.type === VarType.object || curr?.type === VarType.file)
|
||||
curr = curr.children
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ const useOneStepRun = <T>({
|
|||
res = curr
|
||||
}
|
||||
else {
|
||||
if (curr?.type === VarType.object)
|
||||
if (curr?.type === VarType.object || curr?.type === VarType.file)
|
||||
curr = curr.children
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue