tarlepp / angular-sailsjs-boilerplate

'Boilerplate' for AngularJS + Sails.js
MIT License
307 stars 87 forks source link

Add Validation for empty Object in array #87

Closed smyth64 closed 8 years ago

smyth64 commented 8 years ago

Hi, I had the case that the user.find() function returned an array with an emtpy object {}

The array lenght was 1, so it did not populate with barrels. Can you add this code please so we will not have this problem furthermore :-)

greetz, michael

tarlepp commented 8 years ago

Thanks!