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:
committed by
Lyubo Marinov
parent
0c446026d6
commit
0bf9a78e4c
@@ -79,7 +79,7 @@ function _mapDispatchToProps(dispatch: Function): Object {
|
||||
* @returns {Object} Dispatched action.
|
||||
*/
|
||||
_reloadNow() {
|
||||
return dispatch(_reloadNow());
|
||||
dispatch(_reloadNow());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user