File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/components/app/details/triggerView/triggerViewConfigDiff Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,18 +56,18 @@ export default function TriggerViewConfigDiff({
56
56
const [ currentData , setCurrentData ] = useState < any > ( { } ) // store codeEditorValue of current(lhs) and base(rhs) config
57
57
58
58
useEffect ( ( ) => {
59
- if ( canReviewConfig ) {
59
+ if ( canReviewConfig && searchParams . config ) {
60
60
const newSearchParams = {
61
61
...searchParams ,
62
- config : searchParams . config ?. replace ( '-' , '/' ) ,
62
+ config : searchParams . config ,
63
63
}
64
64
history . push ( {
65
65
search : new URLSearchParams ( newSearchParams ) . toString ( ) ,
66
66
} )
67
67
//handling the case when the user directly lands on the deployment history page
68
68
handleNavOptionSelection ( null , newSearchParams . config )
69
69
}
70
- } , [ canReviewConfig ] )
70
+ } , [ canReviewConfig , searchParams . config ] )
71
71
72
72
useEffect ( ( ) => {
73
73
handleConfigToDeploySelection ( )
@@ -171,7 +171,7 @@ export default function TriggerViewConfigDiff({
171
171
172
172
const handleNavOptionSelection = ( e , navConfigKey ?: string ) => {
173
173
const dataValue = navConfigKey || e ?. target ?. dataset ?. value
174
- setParamsValue ( dataValue . replace ( '/' , '-' ) )
174
+ setParamsValue ( dataValue )
175
175
if ( dataValue ) {
176
176
setConvertVariables ( false )
177
177
setActiveSideNavOption ( dataValue )
You can’t perform that action at this time.
0 commit comments