Skip to content

Commit f198df8

Browse files
fix(Dialog): restore navigation after mount process completion (#274)
1 parent f30eb03 commit f198df8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ui/src/routes/devices.$id.mount.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ export function Dialog({ onClose }: { onClose: () => void }) {
9999
})
100100
.finally(() => {
101101
setMountInProgress(false);
102-
navigate("..");
103102
});
104103
});
105104
}
@@ -114,7 +113,7 @@ export function Dialog({ onClose }: { onClose: () => void }) {
114113
clearMountMediaState();
115114
syncRemoteVirtualMediaState()
116115
.then(() => {
117-
false;
116+
navigate("..");
118117
})
119118
.catch(err => {
120119
triggerError(err instanceof Error ? err.message : String(err));
@@ -124,7 +123,6 @@ export function Dialog({ onClose }: { onClose: () => void }) {
124123
// and the modal exit animation for like 500ms
125124
setTimeout(() => {
126125
setMountInProgress(false);
127-
navigate("..");
128126
}, 500);
129127
});
130128
});
@@ -155,7 +153,6 @@ export function Dialog({ onClose }: { onClose: () => void }) {
155153
})
156154
.finally(() => {
157155
setMountInProgress(false);
158-
navigate("..");
159156
});
160157
},
161158
);

0 commit comments

Comments
 (0)