Skip to content

Commit 8b4c2e0

Browse files
committed
git config called only on mounting
1 parent 906cf09 commit 8b4c2e0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/components/ApplicationGroup/Details/TriggerView/EnvTriggerView.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,19 +140,18 @@ export default function EnvTriggerView({ filteredAppIds, isVirtualEnv }: AppGrou
140140
const handledLocation = useRef(false)
141141
const abortControllerRef = useRef(new AbortController())
142142

143-
useEffect(
144-
() => () => {
143+
useEffect(() => {
144+
getConfigs()
145+
return () => {
145146
handledLocation.current = false
146-
},
147-
[],
148-
)
147+
}
148+
}, [])
149149

150150
useEffect(() => {
151151
if (envId) {
152152
setPageViewType(ViewType.LOADING)
153153
setSelectedAppList([])
154154
getWorkflowsData()
155-
getConfigs()
156155
}
157156
return () => {
158157
inprogressStatusTimer && clearTimeout(inprogressStatusTimer)

0 commit comments

Comments
 (0)