@@ -179,7 +179,7 @@ export default function CDMaterial({
179
179
const [ showAppliedFilters , setShowAppliedFilters ] = useState < boolean > ( false )
180
180
const [ deploymentLoading , setDeploymentLoading ] = useState < boolean > ( false )
181
181
const [ appliedFilterList , setAppliedFilterList ] = useState < FilterConditionsListType [ ] > ( [ ] )
182
-
182
+
183
183
const resourceFilters = materialsResult ?. resourceFilters ?? [ ]
184
184
const hideImageTaggingHardDelete = materialsResult ?. hideImageTaggingHardDelete ?? false
185
185
const requestedUserId = materialsResult ?. requestedUserId ?? ''
@@ -779,15 +779,10 @@ export default function CDMaterial({
779
779
: state . specificDeploymentConfig
780
780
}
781
781
782
- const redirectURLToInitial = ( urlTo : string = '' ) => {
783
- const urlPrefix = match . url
784
- history . push ( `${ urlPrefix } /${ urlTo } ` )
785
- }
786
782
787
783
const handleConfigSelection = ( selected ) => {
788
- if ( selected . value !== state . selectedConfigToDeploy . value ) {
784
+ if ( selected ? .value !== state . selectedConfigToDeploy . value ) {
789
785
const _diffOptions = checkForDiff ( state . recentDeploymentConfig , getBaseTemplateConfiguration ( selected ) )
790
- redirectURLToInitial ( selected . value )
791
786
setState ( ( prevState ) => ( {
792
787
...prevState ,
793
788
selectedConfigToDeploy : selected ,
@@ -2084,7 +2079,7 @@ export default function CDMaterial({
2084
2079
height : getTriggerBodyHeight ( isApprovalConfigured ) ,
2085
2080
} }
2086
2081
>
2087
- { showConfigDiffView && canReviewConfig ( ) ? (
2082
+ { state . checkingDiff ? < Progressing pageLoader /> : showConfigDiffView && canReviewConfig ( ) ? (
2088
2083
< TriggerViewConfigDiff
2089
2084
currentConfiguration = { state . recentDeploymentConfig }
2090
2085
baseTemplateConfiguration = { getBaseTemplateConfiguration ( ) }
0 commit comments