Skip to content

Commit

Permalink
fix #4, by change find() to find documents that field actualCollectio…
Browse files Browse the repository at this point in the history
…n exists.
  • Loading branch information
xcv58 committed Sep 16, 2015
1 parent 659cb35 commit 5ebb73c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/client/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Session.setDefault('packageShowing', false);

Template.packageList.helpers({
packages: function() {
return MetaData.find();
return MetaData.find({actualCollection: {$exists: true}});
}
});

Expand All @@ -48,7 +48,7 @@ Template.packageList.events({

Template.devicesList.helpers({
devices: function() {
return Devices.find();
return Devices.find({actualCollection: {$exists: true}});
}
});

Expand Down
2 changes: 1 addition & 1 deletion app/client/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Template.logs.helpers({

// var packages = MetaData.find().fetch();
// return packages;
return MetaData.find();
return MetaData.find({actualCollection: {$exists: true}});
}
});

Expand Down

0 comments on commit 5ebb73c

Please sign in to comment.