Ver Fonte

searchParams.set("type", activeKey);

visuddhinanda há 2 anos atrás
pai
commit
77307b277b
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      dashboard/src/pages/library/search/search.tsx

+ 1 - 1
dashboard/src/pages/library/search/search.tsx

@@ -92,7 +92,7 @@ const Widget = () => {
                 <Tabs
                   onChange={(activeKey: string) => {
                     setView(activeKey);
-                    searchParams.set(view, activeKey);
+                    searchParams.set("type", activeKey);
                     setSearchParams(searchParams);
                     switch (activeKey) {
                       case "pali":