Skip to content

Commit

Permalink
Remove wrong close call in useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
renefs committed Aug 28, 2024
1 parent 42fdabb commit ac91ade
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions client/src/Layout.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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(() => {
Expand Down

0 comments on commit ac91ade

Please sign in to comment.