fix: close modal after editing cluster

This commit is contained in:
jialin
2025-09-16 11:26:17 +08:00
parent d9d5ca95df
commit 5e1a26b743
3 changed files with 11 additions and 4 deletions
+3 -3
View File
@@ -100,9 +100,9 @@ const Credentials: React.FC = () => {
});
} else {
await createCredential({ data: params });
// if (isFromCluster) {
// navigate(-1);
// }
if (isFromCluster) {
navigate(-1);
}
}
fetchData();
setOpenModalStatus({ ...openModalStatus, open: false });