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 (