Skip to content

Commit

Permalink
fix: cast number to string instead of type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
MellyGray committed Sep 1, 2023
1 parent f742476 commit f662270
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function createRowSelection(numberOfRows: number) {
const rowSelection: Record<string, boolean> = {}

for (let i = 0; i < numberOfRows; i++) {
rowSelection[i as unknown as string] = true
rowSelection[String(i)] = true
}

return rowSelection
Expand Down

0 comments on commit f662270

Please sign in to comment.