Skip to content

Commit

Permalink
Categories Loader after changes issue #57
Browse files Browse the repository at this point in the history
  • Loading branch information
Syed Asher Ahmed committed Apr 7, 2017
1 parent 2ff0939 commit 45e29ad
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions imports/ui/components/categories/Categories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ import dialogButtonTheme from './dialogButtonTheme';
import dialogTheme from './dialogTheme';



let query = new ReactiveVar();
class CategoriesPage extends Component {

constructor(props) {
Expand Down Expand Up @@ -162,7 +160,6 @@ class CategoriesPage extends Component {
console.log(err);
}
else{
query.set(Math.random());
}
});
// Close Popup
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 45e29ad

Please sign in to comment.