Pārlūkot izejas kodu

misc: fix dispatching actions twice when mapDispatchToProps is used

master
Lyubo Marinov 8 gadus atpakaļ
vecāks
revīzija
72691eb2dc
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      react/features/toolbox/components/Toolbar.web.js

+ 2
- 2
react/features/toolbox/components/Toolbar.web.js Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt