Sfoglia il codice sorgente

Fix get_board_cards_count

Jakub Jurczyk 1 anno fa
parent
commit
5d6367f404
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      models/cards.js

+ 1 - 1
models/cards.js

@@ -3392,7 +3392,7 @@ JsonRoutes.add('GET', '/api/boards/:boardId/cards_count', function(
         board_cards_count: ReactiveCache.getCards({
         board_cards_count: ReactiveCache.getCards({
           boardId: paramBoardId,
           boardId: paramBoardId,
           archived: false,
           archived: false,
-        }),
+        }).length,
       }
       }
     });
     });
   } catch (error) {
   } catch (error) {