Skip to content

Commit b515400

Browse files
committed
fix: Correct useEffect cleanup function formatting in BulkDeployModal
1 parent 6f5b7b3 commit b515400

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/components/app/details/triggerView/DeployImageModal/BulkDeployModal.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,12 @@ const BulkDeployModal = ({ handleClose, stageType, workflows, isVirtualEnvironme
9191
const isSecurityModuleInstalled = moduleInfoRes && moduleInfoRes?.result?.status === ModuleStatus.INSTALLED
9292
const isCDStage = stageType === DeploymentNodeType.CD
9393

94-
useEffect(() => () => {
95-
initialDataAbortControllerRef.current.abort()
96-
})
94+
useEffect(
95+
() => () => {
96+
initialDataAbortControllerRef.current.abort()
97+
},
98+
[],
99+
)
97100

98101
const handleNavigateToListView = () => {
99102
setShowStrategyFeasibilityPage(false)

0 commit comments

Comments
 (0)