Skip to content

Commit 4c73a76

Browse files
committed
fix: streamline loading state handling in ResourceConflictDeployDialog and ResourceConflictDetailsModal
1 parent 87b59cc commit 4c73a76

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Shared/Components/CICDHistory/ResourceConflictDeployDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ const ResourceConflictDeployDialog = ({ appName, environmentName, handleClose }:
2323
triggerId,
2424
appId,
2525
})
26+
setIsLoading(false)
2627
history.push(`${URLS.APP}/${appId}/details/${envId}`)
2728
} catch (error) {
2829
showError(error)
29-
} finally {
3030
setIsLoading(false)
3131
}
3232
}

src/Shared/Components/CICDHistory/ResourceConflictDetailsModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ const ResourceConflictDetailsModal = ({ appName, environmentName, handleClose }:
4242
triggerId,
4343
appId,
4444
})
45+
setIsDeploying(false)
4546
history.push(`${URLS.APP}/${appId}/details/${envId}`)
4647
} catch (error) {
4748
showError(error)
48-
} finally {
4949
setIsDeploying(false)
5050
}
5151
}

0 commit comments

Comments
 (0)