Sodium -- Template error
-
Unsure if this is a known issue, but I see the following in the browser console whenever I switch to the Agent Management section --
Exception in template helper: unitGroups@https://sodium.waxquixotic.com/app.js?hash=9a69b28b89efe0a1f976612c19bd1154b5baa7e4:1393:3 bindDataContext/<@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:185:16 Blaze._wrapCatchingExceptions/<@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:112:39 wrapHelper/</<@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:191:131 Template._withTemplateInstanceFunc@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:714:12 wrapHelper/<@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:191:59 Spacebars.call@https://sodium.waxquixotic.com/packages/spacebars.js?hash=ebf9381e7fc625d41acb0df14995b7614360858a:14:8 template.computerManagement.js/Template.groupManage</<@https://sodium.waxquixotic.com/app.js?hash=9a69b28b89efe0a1f976612c19bd1154b5baa7e4:1:31132 Blaze.Each/</<@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:172:181 viewAutorun/</<@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:120:250 Template._withTemplateInstanceFunc@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:714:12 viewAutorun/<@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:120:170 Blaze._withCurrentView@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:137:424 viewAutorun@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:120:110 Tracker.Computation.prototype._compute@https://sodium.waxquixotic.com/packages/tracker.js?hash=997515fa2d5b0530ba07741da556c4b36963ef3b:11:235 Tracker.Computation@https://sodium.waxquixotic.com/packages/tracker.js?hash=997515fa2d5b0530ba07741da556c4b36963ef3b:5:363 Tracker.autorun@https://sodium.waxquixotic.com/packages/tracker.js?hash=997515fa2d5b0530ba07741da556c4b36963ef3b:26:120 Blaze.View.prototype.autorun@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:120:355 Blaze.Each/<@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:172:145 fireCallbacks@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:126:9 Tracker.nonreactive@https://sodium.waxquixotic.com/packages/tracker.js?hash=997515fa2d5b0530ba07741da556c4b36963ef3b:27:167 Blaze._fireCallbacks/<@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:125:183 Blaze._withCurrentView@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:137:424 Blaze._fireCallbacks@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:125:144 Blaze._createView@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:128:34 Blaze._materializeView@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:128:667 materializeDOMInner@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:97:34 Blaze._materializeDOM@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:92:168 Blaze._materializeDOM@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:92:300 doMaterialize@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:128:1008 Tracker.nonreactive@https://sodium.waxquixotic.com/packages/tracker.js?hash=997515fa2d5b0530ba07741da556c4b36963ef3b:27:167 doRender@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:128:944 viewAutorun/</<@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:120:250 Template._withTemplateInstanceFunc@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:714:12 viewAutorun/<@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:120:170 Blaze._withCurrentView@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:137:424 viewAutorun@https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:120:110 Tracker.Computation.prototype._compute@https://sodium.waxquixotic.com/packages/tracker.js?hash=997515fa2d5b0530ba07741da556c4b36963ef3b:11:235 Tracker.Computation.prototype._recompute@https://sodium.waxquixotic.com/packages/tracker.js?hash=997515fa2d5b0530ba07741da556c4b36963ef3b:11:581 Tracker._runFlush@https://sodium.waxquixotic.com/packages/tracker.js?hash=997515fa2d5b0530ba07741da556c4b36963ef3b:20:326 onGlobalMessage@https://sodium.waxquixotic.com/packages/meteor.js?hash=814eae5b938a9a89ce7cf9174c98be4982f953d8:26:1 meteor.js:54:1
-
What browswer?
-
@gjacobse FF 54
-
Just checked in Chrome and I get this --
Exception in template helper: TypeError: Cannot read property 'company' of undefined at Object.unitGroups (https://sodium.waxquixotic.com/app.js?hash=9a69b28b89efe0a1f976612c19bd1154b5baa7e4:1656:35) at https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:185:18 at https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:112:41 at https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:191:182 at Function.Template._withTemplateInstanceFunc (https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:714:12) at https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:191:74 at Object.Spacebars.call (https://sodium.waxquixotic.com/packages/spacebars.js?hash=ebf9381e7fc625d41acb0df14995b7614360858a:14:14) at https://sodium.waxquixotic.com/app.js?hash=9a69b28b89efe0a1f976612c19bd1154b5baa7e4:1:31142 at Blaze.View.<anonymous> (https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:172:181) at https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:120:252
-
-
Curious - I don't get that on FF or Chrome.
-
Just checked in Chrome and I get this --
Exception in template helper: TypeError: Cannot read property 'company' of undefined at Object.unitGroups (https://sodium.waxquixotic.com/app.js?hash=9a69b28b89efe0a1f976612c19bd1154b5baa7e4:1656:35) at https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:185:18 at https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:112:41 at https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:191:182 at Function.Template._withTemplateInstanceFunc (https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:714:12) at https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:191:74 at Object.Spacebars.call (https://sodium.waxquixotic.com/packages/spacebars.js?hash=ebf9381e7fc625d41acb0df14995b7614360858a:14:14) at https://sodium.waxquixotic.com/app.js?hash=9a69b28b89efe0a1f976612c19bd1154b5baa7e4:1:31142 at Blaze.View.<anonymous> (https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:172:181) at https://sodium.waxquixotic.com/packages/blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:120:252
That's just initial load. Won't effect anything. the client side threw that error before it read from the server side subscription. I just don't have a catch wrapped around it yet. Not a big deal.