From c686cadfef27bb84966f807681874d91b96450c6 Mon Sep 17 00:00:00 2001 From: Thuan Pham Quoc Date: Wed, 6 Dec 2017 15:39:54 +0700 Subject: Fixed - boards subscription should be placed at header for all other component can be used --- client/components/boards/boardsList.js | 2 -- client/components/main/header.js | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js index cc4e2f87..1ed88146 100644 --- a/client/components/boards/boardsList.js +++ b/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'); }, diff --git a/client/components/main/header.js b/client/components/main/header.js index 3155b3d9..7fbc5716 100644 --- a/client/components/main/header.js +++ b/client/components/main/header.js @@ -1,4 +1,5 @@ Meteor.subscribe('user-admin'); +Meteor.subscribe('boards'); Template.header.helpers({ wrappedHeader() { -- cgit v1.2.3-1-g7c22