pcww / builder

0 stars 0 forks source link

Error when submitting order #134

Closed brian-slate closed 6 years ago

brian-slate commented 6 years ago

When submitting order, the board.save tries to stringify each strip data, but since we have a mesh property (a THREEJS thing) it blows up. Need to remove/ignore this prop on serialize.

Uncaught (in promise) TypeError: Cannot read property '4AE55CD5-B779-4490-BB38-F39162C3769B' of undefined at THREE.Mesh.toJSON (three.js:9086) at JSON.stringify () at Board.Backbone.sync (backbone.js:1408) at Board.sync (backbone.js:437) at Board.save (backbone.js:648) at SubmitOrderModal.jsx:152 at new Promise () at SubmitOrderModal.onSubmit (SubmitOrderModal.jsx:151) at SubmitOrderModal. (makeAssimilatePrototype.js:15) at Object.ReactErrorUtils.invokeGuardedCallback (ReactErrorUtils.js:69)