fix: file type var match page crash

This commit is contained in:
Joel 2024-09-10 11:54:34 +08:00
parent 264f7c2139
commit 97056dad30
2 changed files with 3 additions and 3 deletions

View File

@ -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
}
})

View File

@ -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
}
})