Переглянути джерело

Fix an issue with the star counter

Maxime Quandalle 9 роки тому
батько
коміт
559de5602c
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      client/components/boards/boardHeader.js

+ 1 - 1
client/components/boards/boardHeader.js

@@ -43,7 +43,7 @@ BlazeComponent.extendComponent({
 
   // Only show the star counter if the number of star is greater than 2
   showStarCounter() {
-    const currentBoard = this.currentData();
+    const currentBoard = Boards.findOne(Session.get('currentBoard'));
     return currentBoard && currentBoard.stars >= 2;
   },