Skip to content

Commit 2276d59

Browse files
authored
fix: index out of range problem (#32)
1 parent 71fa69a commit 2276d59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/devtools/src/app/components/display/HighlightedPath.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default defineComponent({
6060
}
6161
removeIndexes.add(index + 1)
6262
removeIndexes.add(index + 2)
63-
classes[index + 3].push('op25!')
63+
classes[index + 3]?.push('op25!')
6464
if (nodes[index + 4]?.children === 'node_modules') {
6565
removeIndexes.add(index + 3)
6666
removeIndexes.add(index + 4)

0 commit comments

Comments
 (0)