From 7817e85621b26261e8dd008493eaf4233943b522 Mon Sep 17 00:00:00 2001 From: soup Date: Sat, 6 May 2023 16:12:59 +0200 Subject: [PATCH] fix(filters): correct toasts for enabling and disabling filters (#912) correct toasts for enabling and disabling filters --- web/src/screens/filters/list.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/src/screens/filters/list.tsx b/web/src/screens/filters/list.tsx index ec4b8a1..8ac5c7b 100644 --- a/web/src/screens/filters/list.tsx +++ b/web/src/screens/filters/list.tsx @@ -652,8 +652,7 @@ function FilterListItem({ filter, values, idx }: FilterListItemProps) { const updateMutation = useMutation({ mutationFn: (status: boolean) => APIClient.filters.toggleEnable(filter.id, status), onSuccess: () => { - toast.custom((t) => ); - + toast.custom((t) => ); // We need to invalidate both keys here. // The filters key is used on the /filters page, // while the ["filter", filter.id] key is used on the details page.