Просмотр исходного кода

misc: fix dispatching actions twice when mapDispatchToProps is used

master
Lyubo Marinov 8 лет назад
Родитель
Сommit
72691eb2dc
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      react/features/toolbox/components/Toolbar.web.js

+ 2
- 2
react/features/toolbox/components/Toolbar.web.js Просмотреть файл

@@ -163,7 +163,7 @@ function _mapDispatchToProps(dispatch: Function): Object {
163 163
          * @returns {Object} Dispatched action.
164 164
          */
165 165
         _onMouseOut() {
166
-            return dispatch(setToolbarHovered(false));
166
+            dispatch(setToolbarHovered(false));
167 167
         },
168 168
 
169 169
         /**
@@ -173,7 +173,7 @@ function _mapDispatchToProps(dispatch: Function): Object {
173 173
          * @returns {Object} Dispatched action.
174 174
          */
175 175
         _onMouseOver() {
176
-            return dispatch(setToolbarHovered(true));
176
+            dispatch(setToolbarHovered(true));
177 177
         }
178 178
     };
179 179
 }

Загрузка…
Отмена
Сохранить