Skip to content

Commit 180ef50

Browse files
committed
Update AppLayout.tsx
1 parent cea2100 commit 180ef50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reactjs/src/components/Layout/AppLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class AppLayout extends React.Component<any> {
4949
</Layout.Header>
5050
<Content style={{ margin: 16 }}>
5151
<Switch>
52-
{this.props.location.pathname === '/' && <Redirect from="/" to="/dashboard" />}
52+
{pathname === '/' && <Redirect from="/" to="/dashboard" />}
5353
{appRouters
5454
.filter((item: any) => !item.isLayout)
5555
.map((route: any, index: any) => (

0 commit comments

Comments
 (0)