Skip to content

Commit 9e1775e

Browse files
committed
address comment
1 parent fac7849 commit 9e1775e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/sim/executor/variables/resolvers/reference-async.server.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ export async function navigatePathAsync(
155155
}
156156
} else if (/^\d+$/.test(part)) {
157157
const index = Number.parseInt(part, 10)
158-
current = Array.isArray(current) ? current[index] : undefined
158+
current = isLargeArrayManifest(current)
159+
? await navigateManifestMetadataOrIndexAsync(current, part, context)
160+
: Array.isArray(current)
161+
? current[index]
162+
: undefined
159163
} else {
160164
current =
161165
typeof current === 'object' && current !== null

0 commit comments

Comments
 (0)