Skip to content

Commit

Permalink
fix: redirection issue in cd material
Browse files Browse the repository at this point in the history
  • Loading branch information
eshankvaish committed Nov 12, 2024
1 parent 956220f commit 24e7e30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/app/details/triggerView/cdMaterial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,9 @@ const CDMaterial = ({
abortDeployRef.current = new AbortController()
return () => {
abortDeployRef.current.abort()
history.replace(pathname.split(URLS.APP_DIFF_VIEW)[0])
if (history.location.pathname.includes(URLS.APP_DIFF_VIEW)) {
history.replace(history.location.pathname.split(URLS.APP_DIFF_VIEW)[0])
}
}
}, [])

Expand Down

0 comments on commit 24e7e30

Please sign in to comment.