mirror of https://github.com/jetkvm/kvm.git
fix(ui): Update device route navigation to root on modal close
This commit is contained in:
parent
4052b3d225
commit
a3355bb81c
|
@ -439,7 +439,7 @@ export default function KvmIdRoute() {
|
|||
const outlet = useOutlet();
|
||||
const location = useLocation();
|
||||
const onModalClose = useCallback(() => {
|
||||
if (location.pathname !== "/other-session") navigateTo("..");
|
||||
if (location.pathname !== "/other-session") navigateTo("/");
|
||||
}, [navigateTo, location.pathname]);
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue