fix(ui): Update device route navigation to root on modal close

This commit is contained in:
Adam Shiervani 2025-02-27 16:59:43 +01:00
parent 4052b3d225
commit a3355bb81c
1 changed files with 1 additions and 1 deletions

View File

@ -439,7 +439,7 @@ export default function KvmIdRoute() {
const outlet = useOutlet(); const outlet = useOutlet();
const location = useLocation(); const location = useLocation();
const onModalClose = useCallback(() => { const onModalClose = useCallback(() => {
if (location.pathname !== "/other-session") navigateTo(".."); if (location.pathname !== "/other-session") navigateTo("/");
}, [navigateTo, location.pathname]); }, [navigateTo, location.pathname]);
return ( return (