mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-18 05:45:59 +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
|
arrayType = curr?.type
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (curr?.type === VarType.object)
|
if (curr?.type === VarType.object || curr?.type === VarType.file)
|
||||||
curr = curr.children
|
curr = curr.children
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -516,7 +516,7 @@ export const getVarType = ({
|
|||||||
type = curr?.type
|
type = curr?.type
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (curr?.type === VarType.object)
|
if (curr?.type === VarType.object || curr?.type === VarType.file)
|
||||||
curr = curr.children
|
curr = curr.children
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -123,7 +123,7 @@ const useOneStepRun = <T>({
|
|||||||
res = curr
|
res = curr
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (curr?.type === VarType.object)
|
if (curr?.type === VarType.object || curr?.type === VarType.file)
|
||||||
curr = curr.children
|
curr = curr.children
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user