From cfbf536d5946b9f9006c9dc62559cbe00622a916 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Mon, 10 Jun 2024 11:53:53 +0200 Subject: [PATCH] fixed embedded param forwarding --- src/Components/AppShell/SideBar.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Components/AppShell/SideBar.tsx b/src/Components/AppShell/SideBar.tsx index d4e70900..f4ddec71 100644 --- a/src/Components/AppShell/SideBar.tsx +++ b/src/Components/AppShell/SideBar.tsx @@ -49,7 +49,6 @@ export function SideBar({ routes, bottomRoutes }: { routes: route[], bottomRoute } }, []) - const searchInput = useRef(null); const [embedded, setEmbedded] = useState(true) @@ -57,9 +56,10 @@ export function SideBar({ routes, bottomRoutes }: { routes: route[], bottomRoute let params = new URLSearchParams(location.search); let embedded = params.get("embedded"); embedded != "true" && setEmbedded(false) - }, [location]); + let params = new URLSearchParams(window.location.search); + return (