From f198df816c47bd2038bdbefa44ef5a5bc55f1955 Mon Sep 17 00:00:00 2001 From: Adam Shiervani Date: Wed, 19 Mar 2025 18:18:51 +0100 Subject: [PATCH] fix(Dialog): restore navigation after mount process completion (#274) --- ui/src/routes/devices.$id.mount.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ui/src/routes/devices.$id.mount.tsx b/ui/src/routes/devices.$id.mount.tsx index 6215d89..42be090 100644 --- a/ui/src/routes/devices.$id.mount.tsx +++ b/ui/src/routes/devices.$id.mount.tsx @@ -99,7 +99,6 @@ export function Dialog({ onClose }: { onClose: () => void }) { }) .finally(() => { setMountInProgress(false); - navigate(".."); }); }); } @@ -114,7 +113,7 @@ export function Dialog({ onClose }: { onClose: () => void }) { clearMountMediaState(); syncRemoteVirtualMediaState() .then(() => { - false; + navigate(".."); }) .catch(err => { triggerError(err instanceof Error ? err.message : String(err)); @@ -124,7 +123,6 @@ export function Dialog({ onClose }: { onClose: () => void }) { // and the modal exit animation for like 500ms setTimeout(() => { setMountInProgress(false); - navigate(".."); }, 500); }); }); @@ -155,7 +153,6 @@ export function Dialog({ onClose }: { onClose: () => void }) { }) .finally(() => { setMountInProgress(false); - navigate(".."); }); }, );