Skip to content

Commit 39b850d

Browse files
committed
fix: quickly return if data row doesn't exist in the table
1 parent e69f4d7 commit 39b850d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/table.ts

+1
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ export class Table extends Component {
377377
}),
378378
value: new Computed(() => {
379379
const dataRow = this.data.value[i + this.offsetRow.value];
380+
if (!dataRow) return "";
380381
const headers = this.headers.value;
381382

382383
let string = "";

0 commit comments

Comments
 (0)