Skip to content

Commit c6accdd

Browse files
committed
fix: add dependency
1 parent af9063d commit c6accdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gui/src/components/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const Layout = () => {
5959
location.pathname === ROUTES.HOME ||
6060
location.pathname === ROUTES.HOME_INDEX
6161
);
62-
}, []);
62+
}, [location]);
6363

6464
useEffect(() => {
6565
(async () => {

0 commit comments

Comments
 (0)