diff options
| author | MohamedBassem <me@mbassem.com> | 2024-04-24 14:52:57 +0100 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-04-24 15:07:18 +0100 |
| commit | ec15d20abac65bfda6c8e6396ce9fc2061f5067a (patch) | |
| tree | 5c7763cef1bf9e65667cde12ffc7a62299898542 /packages/shared-react/hooks/bookmarks.ts | |
| parent | 4804f98e46fe10744b1632841e60302926a0a24a (diff) | |
| download | karakeep-ec15d20abac65bfda6c8e6396ce9fc2061f5067a.tar.zst | |
ui(web): Show bookmark URL when maximizing a bookmark
Diffstat (limited to 'packages/shared-react/hooks/bookmarks.ts')
| -rw-r--r-- | packages/shared-react/hooks/bookmarks.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/shared-react/hooks/bookmarks.ts b/packages/shared-react/hooks/bookmarks.ts index ceaed3a9..402bfae4 100644 --- a/packages/shared-react/hooks/bookmarks.ts +++ b/packages/shared-react/hooks/bookmarks.ts @@ -46,6 +46,7 @@ export function useDeleteBookmark( onSuccess: (res, req, meta) => { apiUtils.bookmarks.getBookmarks.invalidate(); apiUtils.bookmarks.searchBookmarks.invalidate(); + apiUtils.bookmarks.getBookmark.invalidate({ bookmarkId: req.bookmarkId }); return opts[0]?.onSuccess?.(res, req, meta); }, }); |
