From 245903b5f5aa69734b40fc296b3f3e787bda1564 Mon Sep 17 00:00:00 2001 From: yubonluo Date: Sat, 12 Oct 2024 12:50:06 +0800 Subject: [PATCH] fix update workspace successfully issue Signed-off-by: yubonluo --- .../workspace/public/components/workspace_detail_app.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/workspace/public/components/workspace_detail_app.tsx b/src/plugins/workspace/public/components/workspace_detail_app.tsx index a393026552a5..c1eddde45a36 100644 --- a/src/plugins/workspace/public/components/workspace_detail_app.tsx +++ b/src/plugins/workspace/public/components/workspace_detail_app.tsx @@ -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(() => { @@ -139,6 +138,8 @@ export const WorkspaceDetailApp = (props: WorkspaceDetailPropsWithOnAppLeave) => http.basePath ); }, 1000); + } else { + setIsFormSubmitting(false); } return; } else {