Skip to content

Commit 0976ba7

Browse files
committed
fix(typescript): fix error caused by updating ts
1 parent ebe94f9 commit 0976ba7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

features/DatasetsTable/DatasetsTable.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useCallback, useMemo } from "react";
33
import { useGetDatasets } from "@squonk/data-manager-client/dataset";
44

55
import { CircularProgress } from "@mui/material";
6-
import type { CoreOptions, Row } from "@tanstack/react-table";
6+
import type { Row } from "@tanstack/react-table";
77
import { createColumnHelper } from "@tanstack/react-table";
88
import dynamic from "next/dynamic";
99

@@ -129,10 +129,7 @@ export const DatasetsTable = () => {
129129
const { selectedDatasets, onSelection } = useSelectedDatasets(datasets);
130130

131131
const { owner, editor, fileType, labels } = filter;
132-
const getRowId: CoreOptions<TableDataset>["getRowId"] = useCallback(
133-
(row) => `${row.dataset_id}#${row.version}`,
134-
[],
135-
);
132+
const getRowId = useCallback((row: TableDataset) => `${row.dataset_id}#${row.version}`, []);
136133

137134
return (
138135
<DataTable

0 commit comments

Comments
 (0)