diff --git a/components/LinkAdd.tsx b/components/LinkAdd.tsx index 2821ae6a2..871c7c1a5 100644 --- a/components/LinkAdd.tsx +++ b/components/LinkAdd.tsx @@ -22,6 +22,9 @@ export default function LinkAdd() { queryClient.invalidateQueries({ queryKey: ["individualList", Number(folderId.data)], }); + queryClient.invalidateQueries({ + queryKey: ["allList"], + }); }, }); diff --git a/components/modal/DeleteLink.tsx b/components/modal/DeleteLink.tsx index 84d4bda2f..222c498a7 100644 --- a/components/modal/DeleteLink.tsx +++ b/components/modal/DeleteLink.tsx @@ -29,6 +29,9 @@ export default function DeleteFolder({ queryClient.invalidateQueries({ queryKey: ["individualList", Number(folderId.data)], }); + queryClient.invalidateQueries({ + queryKey: ["allList"], + }); }, });