From 45e29adc1bebc7041b9668d624d364d88c82f1a9 Mon Sep 17 00:00:00 2001 From: Syed Asher Ahmed Date: Fri, 7 Apr 2017 15:43:20 +0000 Subject: [PATCH] Categories Loader after changes issue #57 --- imports/ui/components/categories/Categories.jsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/imports/ui/components/categories/Categories.jsx b/imports/ui/components/categories/Categories.jsx index 9757bb9..7599f5e 100755 --- a/imports/ui/components/categories/Categories.jsx +++ b/imports/ui/components/categories/Categories.jsx @@ -19,8 +19,6 @@ import dialogButtonTheme from './dialogButtonTheme'; import dialogTheme from './dialogTheme'; - -let query = new ReactiveVar(); class CategoriesPage extends Component { constructor(props) { @@ -162,7 +160,6 @@ class CategoriesPage extends Component { console.log(err); } else{ - query.set(Math.random()); } }); // Close Popup @@ -257,8 +254,8 @@ CategoriesPage.propTypes = { }; export default createContainer(() => { - Meteor.subscribe('categories', query.get()); - const categoriesHandle = Meteor.subscribe('categories', query.get()); + Meteor.subscribe('categories'); + const categoriesHandle = Meteor.subscribe('categories'); const categoriesLoading = !categoriesHandle.ready(); const categories = Categories.find({ parent: null