Sfoglia il codice sorgente

Fixed - boards subscription should be placed at header for all other component can be used

Thuan Pham Quoc 7 anni fa
parent
commit
c686cadfef

+ 0 - 2
client/components/boards/boardsList.js

@@ -2,8 +2,6 @@ const subManager = new SubsManager();
 
 BlazeComponent.extendComponent({
   onCreated() {
-    // Here is the only place that boards data needed, all boards data will stop sync when leaving this template.
-    Meteor.subscribe('boards');
     Meteor.subscribe('setting');
   },
 

+ 1 - 0
client/components/main/header.js

@@ -1,4 +1,5 @@
 Meteor.subscribe('user-admin');
+Meteor.subscribe('boards');
 
 Template.header.helpers({
   wrappedHeader() {