File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/components/common/navigation Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -524,14 +524,14 @@ export function RedirectUserWithSentry({ isFirstLoginUser }) {
524
524
}
525
525
526
526
export function RedirectToAppList ( ) {
527
- const { push } = useHistory ( )
527
+ const { replace } = useHistory ( )
528
528
const { serverMode } = useContext ( mainContext )
529
529
useEffect ( ( ) => {
530
530
let baseUrl = `${ URLS . APP } /${ URLS . APP_LIST } `
531
531
if ( serverMode == SERVER_MODE . FULL ) {
532
- push ( `${ baseUrl } /${ AppListConstants . AppType . DEVTRON_APPS } ` )
532
+ replace ( `${ baseUrl } /${ AppListConstants . AppType . DEVTRON_APPS } ` )
533
533
} else {
534
- push ( `${ baseUrl } /${ AppListConstants . AppType . HELM_APPS } ` )
534
+ replace ( `${ baseUrl } /${ AppListConstants . AppType . HELM_APPS } ` )
535
535
}
536
536
} , [ ] )
537
537
return null
You can’t perform that action at this time.
0 commit comments