misc: fix dispatching actions twice when mapDispatchToProps is used
This commit is contained in:
parent
0bf9a78e4c
commit
72691eb2dc
|
@ -163,7 +163,7 @@ function _mapDispatchToProps(dispatch: Function): Object {
|
|||
* @returns {Object} Dispatched action.
|
||||
*/
|
||||
_onMouseOut() {
|
||||
return dispatch(setToolbarHovered(false));
|
||||
dispatch(setToolbarHovered(false));
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -173,7 +173,7 @@ function _mapDispatchToProps(dispatch: Function): Object {
|
|||
* @returns {Object} Dispatched action.
|
||||
*/
|
||||
_onMouseOver() {
|
||||
return dispatch(setToolbarHovered(true));
|
||||
dispatch(setToolbarHovered(true));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue