From ac91adee86fed5448f31772666bb97b07e77e907 Mon Sep 17 00:00:00 2001 From: Rene Fernandez Date: Wed, 28 Aug 2024 19:53:10 +0200 Subject: [PATCH] Remove wrong close call in useEffect --- client/src/Layout.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client/src/Layout.tsx b/client/src/Layout.tsx index b49a0e67..82bb0067 100644 --- a/client/src/Layout.tsx +++ b/client/src/Layout.tsx @@ -1,5 +1,5 @@ import { useEffect } from "react"; -import { Outlet, ScrollRestoration, useLocation } from "react-router-dom"; +import { Outlet, ScrollRestoration } from "react-router-dom"; import { AppShell, Burger, @@ -28,11 +28,6 @@ function Layout() { const theme = useMantineTheme(); const { colorScheme } = useMantineColorScheme(); - const location = useLocation(); - useEffect(() => { - close(); - }, [location]); - const { data, isLoading, error, isError } = useSettings(); useEffect(() => {