misc: fix dispatching actions twice when mapDispatchToProps is used

The functions need not return anything, or it will be dispatched as another
action.
This commit is contained in:
Saúl Ibarra Corretgé
2017-07-17 13:51:35 -05:00
committed by Lyubo Marinov
parent 0c446026d6
commit 0bf9a78e4c
5 changed files with 12 additions and 12 deletions
@@ -79,7 +79,7 @@ function _mapDispatchToProps(dispatch: Function): Object {
* @returns {Object} Dispatched action.
*/
_reloadNow() {
return dispatch(_reloadNow());
dispatch(_reloadNow());
}
};
}