Skip to content

Commit 565f966

Browse files
Aditya Agarwaladitya81070
Aditya Agarwal
authored andcommitted
router.jsx: Remove unnecessary arguments
The two arguments `state` and `onEnter` not required. In the route when `/dashboard` matches, it is directed to `/` using browserHistory.push(). Fixes #137
1 parent f08f19b commit 565f966

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {parseRoute, buildRoute} from './route-utils';
2727
const routes = [
2828
// Redirect from `/dashboard` to `/`
2929
{ path: '/dashboard',
30-
onEnter: (state, replace) => browserHistory.push('/')
30+
onEnter: () => browserHistory.push('/')
3131
},
3232
{ path: '/',
3333
component: App,

0 commit comments

Comments
 (0)