Skip to content

Commit aeb9b0b

Browse files
committed
fix modal reopen issue
1 parent 6750980 commit aeb9b0b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

client/packages/lowcoder/src/pages/setting/environments/EnvironmentDetail.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ const EnvironmentDetail: React.FC = () => {
6161

6262
setIsUpdating(true);
6363
try {
64-
await updateEnvironmentData(data);
64+
// Close the modal first, before the update completes
6565
handleCloseModal();
66+
67+
// Then update the environment data
68+
await updateEnvironmentData(data);
6669
} catch (error) {
6770
console.error('Failed to update environment:', error);
6871
} finally {

0 commit comments

Comments
 (0)