We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cea2100 commit 180ef50Copy full SHA for 180ef50
reactjs/src/components/Layout/AppLayout.tsx
@@ -49,7 +49,7 @@ class AppLayout extends React.Component<any> {
49
</Layout.Header>
50
<Content style={{ margin: 16 }}>
51
<Switch>
52
- {this.props.location.pathname === '/' && <Redirect from="/" to="/dashboard" />}
+ {pathname === '/' && <Redirect from="/" to="/dashboard" />}
53
{appRouters
54
.filter((item: any) => !item.isLayout)
55
.map((route: any, index: any) => (
0 commit comments