chore: updated after third level routing
This commit is contained in:
parent
78ba6bad8b
commit
15e953788e
1 changed files with 9 additions and 2 deletions
|
|
@ -141,7 +141,14 @@ const tree = [
|
|||
route: '/settings/operator-info',
|
||||
title: 'Operator Information',
|
||||
get component() {
|
||||
return () => <Redirect to={this.children[0].route} />
|
||||
return () => (
|
||||
<Redirect
|
||||
to={{
|
||||
pathname: this.children[0].route,
|
||||
state: { prev: this.state?.prev }
|
||||
}}
|
||||
/>
|
||||
)
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
|
@ -266,7 +273,7 @@ const Routes = () => {
|
|||
history.push('/wizard')
|
||||
}
|
||||
|
||||
const Transition = history.action === 'PUSH' && location.state ? Slide : Fade
|
||||
const Transition = location.state ? Slide : Fade
|
||||
|
||||
const transitionProps =
|
||||
Transition === Slide
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue