diff --git a/src/pages/_layout.tsx b/src/pages/_layout.tsx index 763e8dc83..ecdce94b4 100644 --- a/src/pages/_layout.tsx +++ b/src/pages/_layout.tsx @@ -121,8 +121,6 @@ const Layout = () => { const navigate = useNavigate() const { pathname } = useLocation() const isLogsPage = pathname === '/logs' - const logsPageMountedRef = useRef(false) - if (isLogsPage) logsPageMountedRef.current = true const themeReady = useMemo(() => Boolean(theme), [theme]) const [menuUnlocked, setMenuUnlocked] = useState(false) @@ -455,7 +453,7 @@ const Layout = () => { - {logsPageMountedRef.current && ( + {isLogsPage && (
{ left: 0, right: 0, bottom: 0, - display: isLogsPage ? undefined : 'none', }} > diff --git a/src/pages/_routers.tsx b/src/pages/_routers.tsx index 080d13c8b..bb1f0b63c 100644 --- a/src/pages/_routers.tsx +++ b/src/pages/_routers.tsx @@ -61,7 +61,7 @@ export const navItems = [ label: 'layout.components.navigation.tabs.logs', path: '/logs', icon: [, ], - Component: () => null /* KeepAlive: real LogsPage rendered in Layout */, + Component: () => null /* LogsPage rendered in Layout only on /logs route */, }, { label: 'layout.components.navigation.tabs.unlock',