TypeError: Cannot read property ‘length’ of undefined since update
-
Hello there,
I recently updated Stock manager plugin from v1 to v2, and right now whenever we save changes we get the following console errors:
[video src="https://i.gyazo.com/7e3630e2dc1215a5fc31e634c5e1210b.mp4" /]react-dom.production.min.js:209 TypeError: Cannot read property 'length' of undefined at Products.js:20 at Array.map (<anonymous>) at Function.mapToProps (Products.js:19) at r (wrapMapToProps.js:41) at m (selectorFactory.js:44) at selectorFactory.js:63 at e.d (connectAdvanced.js:64) at e.t.handleChangeWrapper (Subscription.js:97) at Subscription.js:23 at eu (react-dom.production.min.js:240) el @ react-dom.production.min.js:209 n.callback @ react-dom.production.min.js:226 da @ react-dom.production.min.js:131 al @ react-dom.production.min.js:212 pu @ react-dom.production.min.js:255 t.unstable_runWithPriority @ scheduler.production.min.js:19 $o @ react-dom.production.min.js:122 du @ react-dom.production.min.js:248 Zl @ react-dom.production.min.js:239 (anonymous) @ react-dom.production.min.js:123 t.unstable_runWithPriority @ scheduler.production.min.js:19 $o @ react-dom.production.min.js:122 Qo @ react-dom.production.min.js:123 Ho @ react-dom.production.min.js:122 eu @ react-dom.production.min.js:240 notify @ Subscription.js:19 t.notifyNestedSubs @ Subscription.js:92 t.handleChangeWrapper @ Subscription.js:97 y @ redux.js:221 (anonymous) @ wpApiMiddleware.js:15 tryCatch @ wp-polyfill.min.js?ver=7.4.4:1 invoke @ wp-polyfill.min.js?ver=7.4.4:1 t.<computed> @ wp-polyfill.min.js?ver=7.4.4:1 sn @ index.js?ver=2.5.4:43 i @ index.js?ver=2.5.4:43 (anonymous) @ index.js?ver=2.5.4:43 (anonymous) @ index.js?ver=2.5.4:43 (anonymous) @ wpApiMiddleware.js:3 (anonymous) @ index.js:11 dispatch @ redux.js:638 (anonymous) @ wpApiMiddleware.js:85 (anonymous) @ wpApiMiddleware.js:85 tryCatch @ wp-polyfill.min.js?ver=7.4.4:1 invoke @ wp-polyfill.min.js?ver=7.4.4:1 t.<computed> @ wp-polyfill.min.js?ver=7.4.4:1 sn @ index.js?ver=2.5.4:43 i @ index.js?ver=2.5.4:43 Promise.then (async) sn @ index.js?ver=2.5.4:43 i @ index.js?ver=2.5.4:43 Promise.then (async) sn @ index.js?ver=2.5.4:43 i @ index.js?ver=2.5.4:43 (anonymous) @ index.js?ver=2.5.4:43 (anonymous) @ index.js?ver=2.5.4:43 (anonymous) @ wpApiMiddleware.js:3 (anonymous) @ index.js:11 (anonymous) @ redux.js:477 onClick @ SaveChanges.js:43 l @ react-dom.production.min.js:14 p @ react-dom.production.min.js:14 (anonymous) @ react-dom.production.min.js:14 g @ react-dom.production.min.js:15 it @ react-dom.production.min.js:52 ot @ react-dom.production.min.js:51 lt @ react-dom.production.min.js:52 pt @ react-dom.production.min.js:56 M @ react-dom.production.min.js:287 V @ react-dom.production.min.js:19 Jt @ react-dom.production.min.js:70 Xt @ react-dom.production.min.js:69 t.unstable_runWithPriority @ scheduler.production.min.js:19 $o @ react-dom.production.min.js:122 A @ react-dom.production.min.js:287 Kt @ react-dom.production.min.js:68 Show 7 more frames react-dom.production.min.js:209 TypeError: Cannot read property 'length' of undefined at Products.js:20 at Array.map (<anonymous>) at Function.mapToProps (Products.js:19) at r (wrapMapToProps.js:41) at m (selectorFactory.js:44) at selectorFactory.js:63 at e.d (connectAdvanced.js:64) at e.t.handleChangeWrapper (Subscription.js:97) at Subscription.js:23 at eu (react-dom.production.min.js:240) el @ react-dom.production.min.js:209 n.callback @ react-dom.production.min.js:226 da @ react-dom.production.min.js:131 al @ react-dom.production.min.js:212 pu @ react-dom.production.min.js:255 t.unstable_runWithPriority @ scheduler.production.min.js:19 $o @ react-dom.production.min.js:122 du @ react-dom.production.min.js:248 Zl @ react-dom.production.min.js:239 (anonymous) @ react-dom.production.min.js:123 t.unstable_runWithPriority @ scheduler.production.min.js:19 $o @ react-dom.production.min.js:122 Qo @ react-dom.production.min.js:123 Ho @ react-dom.production.min.js:122 U @ scheduler.production.min.js:17 S.port1.onmessage @ scheduler.production.min.js:14 Products.js:20 Uncaught TypeError: Cannot read property 'length' of undefined at Products.js:20 at Array.map (<anonymous>) at Function.mapToProps (Products.js:19) at r (wrapMapToProps.js:41) at m (selectorFactory.js:44) at selectorFactory.js:63 at e.d (connectAdvanced.js:64) at e.t.handleChangeWrapper (Subscription.js:97) at Subscription.js:23 at eu (react-dom.production.min.js:240) (anonymous) @ Products.js:20 (anonymous) @ Products.js:19 r @ wrapMapToProps.js:41 m @ selectorFactory.js:44 (anonymous) @ selectorFactory.js:63 d @ connectAdvanced.js:64 t.handleChangeWrapper @ Subscription.js:97 (anonymous) @ Subscription.js:23 eu @ react-dom.production.min.js:240 notify @ Subscription.js:19 t.notifyNestedSubs @ Subscription.js:92 t.handleChangeWrapper @ Subscription.js:97 y @ redux.js:221 (anonymous) @ wpApiMiddleware.js:15 tryCatch @ wp-polyfill.min.js?ver=7.4.4:1 invoke @ wp-polyfill.min.js?ver=7.4.4:1 t.<computed> @ wp-polyfill.min.js?ver=7.4.4:1 sn @ index.js?ver=2.5.4:43 i @ index.js?ver=2.5.4:43 (anonymous) @ index.js?ver=2.5.4:43 (anonymous) @ index.js?ver=2.5.4:43 (anonymous) @ wpApiMiddleware.js:3 (anonymous) @ index.js:11 dispatch @ redux.js:638 (anonymous) @ wpApiMiddleware.js:85 (anonymous) @ wpApiMiddleware.js:85 tryCatch @ wp-polyfill.min.js?ver=7.4.4:1 invoke @ wp-polyfill.min.js?ver=7.4.4:1 t.<computed> @ wp-polyfill.min.js?ver=7.4.4:1 sn @ index.js?ver=2.5.4:43 i @ index.js?ver=2.5.4:43 Products.js:20 Uncaught (in promise) TypeError: Cannot read property 'length' of undefined at Products.js:20 at Array.map (<anonymous>) at Function.mapToProps (Products.js:19) at r (wrapMapToProps.js:41) at m (selectorFactory.js:44) at selectorFactory.js:63 at e.d (connectAdvanced.js:64) at e.t.handleChangeWrapper (Subscription.js:97) at Subscription.js:23 at eu (react-dom.production.min.js:240)
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘TypeError: Cannot read property ‘length’ of undefined since update’ is closed to new replies.