Skip to content

Commit

Permalink
🏷️ - refactor: remove unnecessary "as" statements
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvandescheur committed Dec 10, 2024
1 parent ae0f9d3 commit 98e59e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/hooks/useFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function useFilter<T extends object>(): [
*/
const setFilterField = (filterData: T) => {
setCombinedSearchParams({
...(filterData as object),
...filterData,
page: "1",
});
};
Expand Down
6 changes: 1 addition & 5 deletions frontend/src/pages/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,7 @@ export function SettingsPage() {

const onSelectionChange = useCallback(
(selectedRows: ShortProcedureSetting[]) => {
const newSelected = new Set(
(selectedRows as unknown as ShortProcedureSetting[]).map(
(row) => row.zaaktype,
),
);
const newSelected = new Set(selectedRows.map((row) => row.zaaktype));
setSelectedZaaktypes(newSelected);
},
[],
Expand Down

0 comments on commit 98e59e4

Please sign in to comment.