From 565f966418f9a7432ec9b81f63c43967ca136462 Mon Sep 17 00:00:00 2001 From: Aditya Agarwal Date: Fri, 21 Sep 2018 23:23:24 +0530 Subject: [PATCH] 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 https://github.com/coala/gh-board/issues/137 --- src/router.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router.jsx b/src/router.jsx index 27273401..47e0f60e 100644 --- a/src/router.jsx +++ b/src/router.jsx @@ -27,7 +27,7 @@ import {parseRoute, buildRoute} from './route-utils'; const routes = [ // Redirect from `/dashboard` to `/` { path: '/dashboard', - onEnter: (state, replace) => browserHistory.push('/') + onEnter: () => browserHistory.push('/') }, { path: '/', component: App,