From cf06bbb2b56690ccfe29e36cbde0d8a68ad04bad Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Sun, 24 Aug 2025 01:33:20 +0300
Subject: fix(web): fix query getting rest when bookmark preview is closed.
 fixes #1521

---
 apps/web/components/dashboard/SortOrderToggle.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'apps/web/components/dashboard/SortOrderToggle.tsx')

diff --git a/apps/web/components/dashboard/SortOrderToggle.tsx b/apps/web/components/dashboard/SortOrderToggle.tsx
index ba3385ac..a5a10541 100644
--- a/apps/web/components/dashboard/SortOrderToggle.tsx
+++ b/apps/web/components/dashboard/SortOrderToggle.tsx
@@ -8,14 +8,14 @@ import {
   DropdownMenuItem,
   DropdownMenuTrigger,
 } from "@/components/ui/dropdown-menu";
-import { useIsSearchPage } from "@/lib/hooks/bookmark-search";
 import { useTranslation } from "@/lib/i18n/client";
+import { useInSearchPageStore } from "@/lib/store/useInSearchPageStore";
 import { useSortOrderStore } from "@/lib/store/useSortOrderStore";
 import { Check, ListFilter, SortAsc, SortDesc } from "lucide-react";
 
 export default function SortOrderToggle() {
   const { t } = useTranslation();
-  const isInSearchPage = useIsSearchPage();
+  const isInSearchPage = useInSearchPageStore();
 
   const { sortOrder: currentSort, setSortOrder } = useSortOrderStore();
 
-- 
cgit v1.2.3-70-g09d2

