Skip to content

Commit

Permalink
fix: quickly return if data row doesn't exist in the table
Browse files Browse the repository at this point in the history
  • Loading branch information
Im-Beast committed Nov 4, 2023
1 parent e69f4d7 commit 39b850d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down

1 comment on commit 39b850d

@adamtaylor13
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow! That was a very simple fix 😅 I didn't expect that. Thanks for the speedy fix!

Please sign in to comment.