Skip to content

Commit d83f507

Browse files
committed
fix(table): guard virtual row index before rendering to prevent out-of-bounds crash
1 parent 67b56bc commit d83f507

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/runtime/components/Table.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ defineExpose({
627627
</tr>
628628
<template v-for="virtualRow in virtualizer.getVirtualItems()" :key="centerRows[virtualRow.index]?.id">
629629
<ReuseRowTemplate
630+
v-if="centerRows[virtualRow.index]"
630631
:row="centerRows[virtualRow.index]!"
631632
:style="{ height: `${virtualRow.size}px` }"
632633
/>

0 commit comments

Comments
 (0)