File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/components/app/details/triggerView Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,10 @@ export default function CDMaterial({
245
245
checkingDiff : false ,
246
246
} ) )
247
247
} ,
248
- ) . finally ( ( ) => {
248
+ ) . catch ( ( error ) => {
249
+ showError ( error )
250
+ } )
251
+ . finally ( ( ) => {
249
252
setState ( ( prevState ) => ( { ...prevState , checkingDiff : false } ) )
250
253
} )
251
254
}
@@ -819,7 +822,7 @@ const getInitialSelectedConfigToDeploy = () => {
819
822
}
820
823
821
824
const handleConfigSelection = ( selected ) => {
822
- if ( selected ? .value !== state . selectedConfigToDeploy . value ) {
825
+ if ( selected . value !== state . selectedConfigToDeploy . value ) {
823
826
const _diffOptions = checkForDiff ( state . recentDeploymentConfig , getBaseTemplateConfiguration ( selected ) )
824
827
setState ( ( prevState ) => ( {
825
828
...prevState ,
Original file line number Diff line number Diff line change @@ -62,12 +62,11 @@ export default function TriggerViewConfigDiff({
62
62
config : searchParams . config ?. replace ( '-' , '/' ) ,
63
63
deploy : searchParams . deploy ,
64
64
}
65
- const configParamValue = searchParams . config ?. replace ( '-' , '/' )
66
65
history . push ( {
67
66
search : new URLSearchParams ( newSearchParams ) . toString ( ) ,
68
67
} )
69
68
//handling the case when the user directly lands on the deployment history page
70
- handleNavOptionSelection ( null , configParamValue )
69
+ handleNavOptionSelection ( null , newSearchParams . config )
71
70
}
72
71
} , [ canReviewConfig ] )
73
72
You can’t perform that action at this time.
0 commit comments