From 39b850d75d0528dacc3ef6b0970a5f074f402c8b Mon Sep 17 00:00:00 2001 From: Im-Beast Date: Sat, 4 Nov 2023 18:59:34 +0100 Subject: [PATCH] fix: quickly return if data row doesn't exist in the table --- src/components/table.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/table.ts b/src/components/table.ts index e1d5d3d..e2a0eeb 100644 --- a/src/components/table.ts +++ b/src/components/table.ts @@ -377,6 +377,7 @@ export class Table extends Component { }), value: new Computed(() => { const dataRow = this.data.value[i + this.offsetRow.value]; + if (!dataRow) return ""; const headers = this.headers.value; let string = "";