VulcanJS / Vulcan

🌋 A toolkit to quickly build apps with React, GraphQL & Meteor
http://vulcanjs.org
MIT License
7.98k stars 1.89k forks source link

Unable to create/edit Posts Master & devel branch #1614

Closed raiden017 closed 7 years ago

raiden017 commented 7 years ago

The latest Master and devel branch is throwing an error when trying to create a new post or edit a post. I suspect it is something to do with SmartForms, but not entirely sure..

modules.js?hash=0dc72b1…:34697 Uncaught TypeError: Cannot convert undefined or null to object at from (native) at exports.default at FormComponent.renderComponent (http://localhost:3000/packages/vulcan_forms.js? at FormComponent.render (http://localhost:3000/packages/vulcan_forms.js? at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext at ReactCompositeComponentWrapper._renderValidatedComponent at ReactCompositeComponentWrapper.performInitialMount at ReactCompositeComponentWrapper.mountComponent at Object.mountComponent at ReactDOMComponent.mountChildren

SachaG commented 7 years ago

How about now?

SachaG commented 7 years ago

(if you pull again)

raiden017 commented 7 years ago

Works perfectly now!, what was the solution?

SachaG commented 7 years ago

Posts.statuses wasn't defined yet:

https://github.com/VulcanJS/Vulcan/commit/a815dca0a2610fff60e5c1e2d8cd3e9327b910fe