Skip to content

Commit

Permalink
feat: amélioration du typage
Browse files Browse the repository at this point in the history
  • Loading branch information
m-maillot committed Oct 22, 2024
1 parent 6b796d9 commit 34a7711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions targets/frontend/src/components/list/DataList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ export const DataList = <T extends Data>({

const handleSelectAllClick = (event: React.ChangeEvent<HTMLInputElement>) => {
setItemCheck(
rows.reduce((acc, item) => {
rows.reduce<ItemCheck>((acc, item) => {
acc[item.id] = event.target.checked;
return acc;
}, {} as ItemCheck)
}, {})
);
};

Expand Down

0 comments on commit 34a7711

Please sign in to comment.