Skip to content

Commit

Permalink
Merge pull request #2432 from devtron-labs/fix/show-timeline-poll
Browse files Browse the repository at this point in the history
fix: helm chart deployment type
  • Loading branch information
arunjaindev authored Jan 31, 2025
2 parents 0ce3a3e + 848d00c commit be0182c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
19 changes: 13 additions & 6 deletions src/components/app/details/appDetails/AppDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,14 @@ export const Details: React.FC<DetailsType> = ({
],
)

useEffect(() => () => {
clearPollingInterval()
IndexStore.clearAppDetails()
}, [])
useEffect(
() => () => {
clearPollingInterval()
clearDeploymentStatusTimer()
IndexStore.clearAppDetails()
},
[],
)

useEffect(() => {
appDetailsAbortRef.current = new AbortController()
Expand All @@ -409,8 +413,11 @@ export const Details: React.FC<DetailsType> = ({
if (setIsAppDeleted) {
setIsAppDeleted(true)
}
// NOTE: BE sends string representation of 7000 instead of number 7000
if (getIsRequestAborted(error) || (error instanceof ServerErrors && String(error.errors?.[0]?.code ?? '') === "7000")) {
// NOTE: BE sends string representation of 7000 instead of number 7000
if (
getIsRequestAborted(error) ||
(error instanceof ServerErrors && String(error.errors?.[0]?.code ?? '') === '7000')
) {
setResourceTreeFetchTimeOut(true)
} else {
setResourceTreeFetchTimeOut(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const initState = (
invalidProject: false,
formValidationError: {},
showNoGitOpsWarning: false,
deploymentAppType: deploymentAppType ?? DeploymentAppTypes.HELM,
deploymentAppType: deploymentAppType ?? window._env_.HIDE_GITOPS_OR_HELM_OPTION ? '' : DeploymentAppTypes.HELM,
gitRepoURL: '',
authMode: null,
initialChartVersionValues: {
Expand Down

0 comments on commit be0182c

Please sign in to comment.