From f662270f8a0d8bc1379b68f0c1e510549f5795fd Mon Sep 17 00:00:00 2001 From: MellyGray Date: Fri, 1 Sep 2023 11:26:44 +0200 Subject: [PATCH] fix: cast number to string instead of type assertion --- .../dataset-files/files-table/row-selection/useRowSelection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sections/dataset/dataset-files/files-table/row-selection/useRowSelection.ts b/src/sections/dataset/dataset-files/files-table/row-selection/useRowSelection.ts index 55c0a468e..24e15dc6c 100644 --- a/src/sections/dataset/dataset-files/files-table/row-selection/useRowSelection.ts +++ b/src/sections/dataset/dataset-files/files-table/row-selection/useRowSelection.ts @@ -95,7 +95,7 @@ export function createRowSelection(numberOfRows: number) { const rowSelection: Record = {} for (let i = 0; i < numberOfRows; i++) { - rowSelection[i as unknown as string] = true + rowSelection[String(i)] = true } return rowSelection