Skip to content

Instantly share code, notes, and snippets.

@dai-shi
Created March 27, 2016 11:00
Show Gist options
  • Select an option

  • Save dai-shi/08dda99733bb20c9cdce to your computer and use it in GitHub Desktop.

Select an option

Save dai-shi/08dda99733bb20c9cdce to your computer and use it in GitHub Desktop.
diff --git a/imports/ui/App.jsx b/imports/ui/App.jsx
index 1500877..75714e5 100644
--- a/imports/ui/App.jsx
+++ b/imports/ui/App.jsx
@@ -87,5 +87,6 @@ App.propTypes = {
export default createContainer(() => {
return {
tasks: Tasks.find({}, { sort: { createdAt: -1 } }).fetch(),
+ incompleteCount: Tasks.find({ checked: { $ne: true } }).count(),
};
}, App);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment