TypeError: Cannot read property 'id' of undefined
File "F:\code\NMTG\passport\loopback-fb-login\server\models\grocery.js", line 124, in null.<anonymous>
return item.department.id.toString();
File "F:\code\NMTG\passport\loopback-fb-login\node_modules\underscore\underscore.js", line 399, in null.<anonymous>
var key = iteratee(value, index, obj);
File "F:\code\NMTG\passport\loopback-fb-login\node_modules\underscore\underscore.js", line 153, in Function._.each._.forEach
iteratee(obj[i], i, obj);
File "F:\code\NMTG\passport\loopback-fb-login\node_modules\underscore\underscore.js", line 398, in Function.groupBy
_.each(obj, function(value, index) {
File "F:\code\NMTG\passport\loopback-fb-login\server\models\grocery.js", line 122, in Function.Grocery.convertCollectionData
var uniques = _.map(_.groupBy(g.ingredients, function(item){
...
(2 additional frame(s) were not displayed)
TypeError: Cannot read property 'id' of undefined
it was caused ,when i test create new ing, and maybe some data start to be broken
https://sentry.io/atherdon/grocery/issues/393702255/
it was caused ,when i test create new ing, and maybe some data start to be broken