mirror of
https://github.com/langgenius/dify.git
synced 2026-01-07 23:04:12 +00:00
fix: file type var match page crash
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user