From a84a13c76d99f1e6f4505d43108a4111749e5035 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sat, 25 May 2024 19:14:54 -0400 Subject: Custom error handler and some misc fixes --- frontend/src/components/modals/DropdownMultiselect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/src/components/modals/DropdownMultiselect.tsx') diff --git a/frontend/src/components/modals/DropdownMultiselect.tsx b/frontend/src/components/modals/DropdownMultiselect.tsx index 4c5cf7b1..255c6fa0 100644 --- a/frontend/src/components/modals/DropdownMultiselect.tsx +++ b/frontend/src/components/modals/DropdownMultiselect.tsx @@ -59,7 +59,7 @@ const DropdownMultiselect: FC<{ const [itemsSelected, setItemsSelected] = useState(selected); const { t } = useTranslation(); - const handleItemSelect = useCallback((checked, value) => { + const handleItemSelect = useCallback((checked: boolean, value: any) => { setItemsSelected((x: any) => checked ? [...x.filter((y: any) => y !== value), value] : x.filter((y: any) => y !== value), ); -- cgit v1.2.3