diff --git a/hourglass/client/main/main.js b/hourglass/client/main/main.js index 38aa239..dcc24d3 100644 --- a/hourglass/client/main/main.js +++ b/hourglass/client/main/main.js @@ -108,7 +108,6 @@ Template.registerHelper('myClasses', () => { // Gets all classes and respective mine: false, box: " owned" }; - array.push(found); } else { found = classes.findOne({ _id: courses[i] @@ -119,9 +118,9 @@ Template.registerHelper('myClasses', () => { // Gets all classes and respective found.box = " owned"; found.mine = false; } + } if (classDisp.indexOf(courses[i]) !== -1) found.selected = true; // Filter selected. array.push(found); - } var thisWork = work.find({ class: courses[i]