Skip to content

Commit 23900e1

Browse files
committed
feat: Immediately close redeploy modal when submitting
Fixes #897.
1 parent 4e1dee1 commit 23900e1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/features/instance/applications/modals/RedeployApplicationModal.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export function RedeployApplicationModal() {
4545
if (!openedEntry) {
4646
return;
4747
}
48-
const originalPackageUrl = openedEntry.package;
48+
setWatchedValue('ShowRedeployApplicationModal', false);
49+
4950
const toastId = toast.loading('Redeploying...');
5051
reDeployApplication({
5152
applicationName: openedEntry.project,
@@ -64,10 +65,8 @@ export function RedeployApplicationModal() {
6465
queryKey: [instanceParams.entityId, 'get_components'],
6566
refetchType: 'active',
6667
});
67-
setWatchedValue('ShowRedeployApplicationModal', false);
6868
},
6969
onError: () => {
70-
openedEntry.package = originalPackageUrl;
7170
toast.dismiss(toastId);
7271
},
7372
});

0 commit comments

Comments
 (0)