File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -85,14 +85,12 @@ const ChartDeploymentHistory = ({
85
85
isExternal,
86
86
isVirtualEnvironment,
87
87
isLoadingDetails,
88
- helmAppPackageName,
89
88
} : {
90
89
appId : string
91
90
appName ?: string
92
91
isExternal : boolean
93
92
isVirtualEnvironment ?: boolean
94
93
isLoadingDetails ?: boolean
95
- helmAppPackageName ?: string
96
94
} ) => {
97
95
const params = useParams < { envId : string } > ( )
98
96
const [ isLoading , setIsLoading ] = useState ( true )
@@ -503,7 +501,7 @@ const ChartDeploymentHistory = ({
503
501
const paramsData = {
504
502
appId,
505
503
envId : params . envId ,
506
- appName : helmAppPackageName ,
504
+ appName : deployment . helmPackageName ,
507
505
workflowId : deployment . version ,
508
506
isHelmApp : true ,
509
507
}
@@ -603,7 +601,7 @@ const ChartDeploymentHistory = ({
603
601
renderCodeEditor ( ) }
604
602
{ selectedDeploymentTabName === DEPLOYMENT_HISTORY_TAB . ARTIFACTS && VirtualHistoryArtifact && (
605
603
< VirtualHistoryArtifact
606
- titleName = { helmAppPackageName }
604
+ titleName = { deployment . helmPackageName }
607
605
params = { paramsData }
608
606
status = { deployment . status }
609
607
/>
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ export interface ChartDeploymentDetail {
44
44
deployedBy : string
45
45
status : string
46
46
message ?: string
47
+ helmPackageName ?: string
47
48
}
48
49
49
50
export interface RollbackReleaseRequest {
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ const RouterComponent = ({ envType }) => {
52
52
} )
53
53
const [ loadingDetails , setLoadingDetails ] = useState ( false )
54
54
const [ loadingResourceTree , setLoadingResourceTree ] = useState ( false )
55
- const [ helmAppPackageName , setHelmAppPackageName ] = useState ( '' )
56
55
// NOTE: this might seem like a duplicate of loadingResourceTree
57
56
// but its not since loadingResourceTree runs a loader on the whole page
58
57
// maybe we can rename loadingResourceTree
@@ -128,7 +127,6 @@ const RouterComponent = ({ envType }) => {
128
127
. then ( ( response ) => {
129
128
handlePublishAppDetails ( response )
130
129
isVirtualRef . current = response . result ?. isVirtualEnvironment
131
- setHelmAppPackageName ( response . result ?. helmPackageName )
132
130
if ( fetchExternalLinks ) {
133
131
getExternalLinksAndTools ( response . result ?. clusterId )
134
132
}
@@ -253,7 +251,6 @@ const RouterComponent = ({ envType }) => {
253
251
isExternal = { false }
254
252
isLoadingDetails = { loadingDetails }
255
253
isVirtualEnvironment = { isVirtualRef . current }
256
- helmAppPackageName = { helmAppPackageName }
257
254
/>
258
255
</ Route >
259
256
< Redirect to = { `${ path } /${ URLS . APP_DETAILS } ` } />
You can’t perform that action at this time.
0 commit comments