File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -751,7 +751,7 @@ const Details: React.FC<DetailsType> = ({
751
751
) : (
752
752
renderAppDetails ( )
753
753
) }
754
- { ( detailedStatus || location . search . includes ( DEPLOYMENT_STATUS_QUERY_PARAM ) ) && (
754
+ { ( detailedStatus || ( appDetails && location . search . includes ( DEPLOYMENT_STATUS_QUERY_PARAM ) ) ) && (
755
755
< AppStatusModal
756
756
titleSegments = { [ appDetailsFromIndexStore . appName , appDetailsFromIndexStore . environmentName ] }
757
757
handleClose = { handleCloseAppStatusModal }
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ const AppDetailsComponent = ({
225
225
renderHelmAppDetails ( )
226
226
) }
227
227
228
- { location . search . includes ( DEPLOYMENT_STATUS_QUERY_PARAM ) && (
228
+ { appDetails && location . search . includes ( DEPLOYMENT_STATUS_QUERY_PARAM ) && (
229
229
< AppStatusModal
230
230
type = "other-apps"
231
231
titleSegments = { [ appDetails ?. appName , appDetails ?. environmentName || appDetails ?. namespace ] }
Original file line number Diff line number Diff line change @@ -104,10 +104,13 @@ export const K8ResourceComponent = ({
104
104
}
105
105
106
106
const handleFilterClick = ( selectedFilter : string ) => {
107
- const searchParams = new URLSearchParams ( [ [ 'filterType' , selectedFilter ] ] )
107
+ const searchParams = new URLSearchParams ( location . search )
108
+ searchParams . set ( 'filterType' , selectedFilter )
109
+
108
110
IndexStore . updateFilterType ( selectedFilter . toUpperCase ( ) )
109
111
if ( selectedFilter === ALL_RESOURCE_KIND_FILTER ) {
110
- history . push ( { search : '' } )
112
+ searchParams . delete ( 'filterType' )
113
+ history . push ( { search : `${ searchParams } ` } )
111
114
return
112
115
}
113
116
// current selected node exist in new selected filter or not
You can’t perform that action at this time.
0 commit comments