react-flags icon indicating copy to clipboard operation
react-flags copied to clipboard

React 15.6 - react-flags.js:135 Uncaught TypeError: Cannot read property 'length' of undefined

Open michaelrodov opened this issue 6 years ago • 0 comments

Hi, Since version 0.1.13 I'm seeing this issue when using flags (same code) If i switch back to 0.1.12 the issue is gone. I haven't investigated this, but it seems like a props reset (The props are being refreshed and instead of country i get undefined)

react-flags.js:135 Uncaught TypeError: Cannot read property 'length' of undefined
    at Flag.render (react-flags.js:135)
    at ReactCompositeComponent.js:793
    at measureLifeCyclePerf (ReactCompositeComponent.js:73)
    at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (ReactCompositeComponent.js:792)
    at ReactCompositeComponentWrapper._renderValidatedComponent (ReactCompositeComponent.js:819)
    at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:359)
    at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:255)
    at Object.mountComponent (ReactReconciler.js:43)
    at ReactDOMComponent.mountChildren (ReactMultiChild.js:234)
    at ReactDOMComponent._createInitialChildren (ReactDOMComponent.js:701)

michaelrodov avatar Apr 16 '18 07:04 michaelrodov