From eee128c1708c8e995a1ece9d24abc9605196d634 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Mon, 4 Mar 2024 21:51:25 +0000
Subject: fix: Less aggressive invalidation when a bookmark is deleted

---
 packages/web/app/dashboard/bookmarks/components/BookmarkOptions.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'packages/web/app/dashboard/bookmarks/components/BookmarkOptions.tsx')

diff --git a/packages/web/app/dashboard/bookmarks/components/BookmarkOptions.tsx b/packages/web/app/dashboard/bookmarks/components/BookmarkOptions.tsx
index e6d0cd15..14515191 100644
--- a/packages/web/app/dashboard/bookmarks/components/BookmarkOptions.tsx
+++ b/packages/web/app/dashboard/bookmarks/components/BookmarkOptions.tsx
@@ -37,7 +37,7 @@ export default function BookmarkOptions({ bookmark }: { bookmark: ZBookmark }) {
 
   const [isTextEditorOpen, setTextEditorOpen] = useState(false);
 
-  const invalidateBookmarksCache = api.useUtils().bookmarks.invalidate;
+  const invalidateBookmarksCache = api.useUtils().bookmarks.getBookmarks.invalidate;
 
   const onError = () => {
     toast({
-- 
cgit v1.2.3-70-g09d2

