Skip to content

Commit

Permalink
fix update workspace successfully issue
Browse files Browse the repository at this point in the history
Signed-off-by: yubonluo <[email protected]>
  • Loading branch information
yubonluo committed Oct 12, 2024
1 parent a832ed6 commit 245903b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ export const WorkspaceDetailApp = (props: WorkspaceDetailPropsWithOnAppLeave) =>
defaultMessage: 'Update workspace successfully',
}),
});
setIsFormSubmitting(false);
if (application && http && refresh) {
// Redirect page after one second, leave one second time to show update successful toast.
window.setTimeout(() => {
Expand All @@ -139,6 +138,8 @@ export const WorkspaceDetailApp = (props: WorkspaceDetailPropsWithOnAppLeave) =>
http.basePath
);
}, 1000);
} else {
setIsFormSubmitting(false);
}
return;
} else {
Expand Down

0 comments on commit 245903b

Please sign in to comment.