Explorar o código

Fix an issue with the star counter

Maxime Quandalle %!s(int64=10) %!d(string=hai) anos
pai
achega
559de5602c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
   },