mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-18 04:25:54 +08:00
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…
x
Reference in New Issue
Block a user