Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 3d4b321

Browse files
committed
redundant filter
1 parent 38d45c8 commit 3d4b321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function Table(tableData: TableDataType) {
9696
);
9797
const findColumn = React.useCallback(
9898
(id: string) => {
99-
const findedColumn = columns.filter((c) => `${c.id}` === id)[0];
99+
const findedColumn = columns.find((c) => c.id === id);
100100
return {
101101
findedColumn,
102102
index: columns.indexOf(findedColumn),

0 commit comments

Comments
 (0)