Skip to content

Commit 525ca13

Browse files
committed
fix for not rendering config value on mount always in env group
1 parent be9fdea commit 525ca13

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export default function EnvTriggerView({ filteredAppIds, isVirtualEnv }: AppGrou
152152
setPageViewType(ViewType.LOADING)
153153
setSelectedAppList([])
154154
getWorkflowsData()
155+
getConfigs()
155156
}
156157
return () => {
157158
inprogressStatusTimer && clearTimeout(inprogressStatusTimer)
@@ -165,20 +166,18 @@ export default function EnvTriggerView({ filteredAppIds, isVirtualEnv }: AppGrou
165166
// URL Encoding for Bulk is not planned as of now
166167
setShowBulkCDModal(false)
167168
if (location.search.includes('approval-node')) {
168-
getConfigs()
169169
const searchParams = new URLSearchParams(location.search)
170170
const nodeId = Number(searchParams.get('approval-node'))
171171
if (!isNaN(nodeId)) {
172172
onClickCDMaterial(nodeId, DeploymentNodeType.CD, true)
173-
}
174-
else {
173+
} else {
175174
toast.error('Invalid node id')
176175
history.push({
177176
search: '',
178177
})
179178
}
180-
}
181-
else if (location.search.includes('rollback-node')) {
179+
}
180+
else if (location.search.includes('rollback-node')) {
182181
const searchParams = new URLSearchParams(location.search)
183182
const nodeId = Number(searchParams.get('rollback-node'))
184183
if (!isNaN(nodeId)) {

0 commit comments

Comments
 (0)