Prechádzať zdrojové kódy

Fix an issue with the star counter

Maxime Quandalle 9 rokov pred
rodič
commit
559de5602c
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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
   // Only show the star counter if the number of star is greater than 2
   showStarCounter() {
   showStarCounter() {
-    const currentBoard = this.currentData();
+    const currentBoard = Boards.findOne(Session.get('currentBoard'));
     return currentBoard && currentBoard.stars >= 2;
     return currentBoard && currentBoard.stars >= 2;
   },
   },