Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing metadata causes JS errors #36

Open
bxm156 opened this issue Feb 23, 2017 · 0 comments
Open

Missing metadata causes JS errors #36

bxm156 opened this issue Feb 23, 2017 · 0 comments

Comments

@bxm156
Copy link
Member

bxm156 commented Feb 23, 2017

Relates to #34.

When certain metadata fields are not provided, their use in the frontend JS causes errors.

For example, if metadata is missing, the following JS error appears in the console.

Uncaught (in promise) TypeError: Cannot read property 'company_profile_url' of undefined
    at User.render (User.jsx:28)
    at ReactCompositeComponent.js?d2b3:796
    at measureLifeCyclePerf (ReactCompositeComponent.js?d2b3:75)
    at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (ReactCompositeComponent.js?d2b3:795)
    at ReactCompositeComponentWrapper._renderValidatedComponent (ReactCompositeComponent.js?d2b3:822)
    at ReactCompositeComponentWrapper._updateRenderedComponent (ReactCompositeComponent.js?d2b3:746)
    at ReactCompositeComponentWrapper._performComponentUpdate (ReactCompositeComponent.js?d2b3:724)
    at ReactCompositeComponentWrapper.updateComponent (ReactCompositeComponent.js?d2b3:645)
    at ReactCompositeComponentWrapper.receiveComponent (ReactCompositeComponent.js?d2b3:547)
    at Object.receiveComponent (ReactReconciler.js?399b:125)
@bxm156 bxm156 changed the title Missing metadata causes JS Errors Missing metadata causes JS errors Feb 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant