Move every Boards.findOne(boardId) to the ReactiveCache (Part 2)

This commit is contained in:
Martin Filser 2023-01-14 13:29:57 +01:00
parent 9022e9949f
commit a182482cfb
37 changed files with 166 additions and 127 deletions

View file

@ -201,7 +201,7 @@ Utils = {
// XXX We should remove these two methods
goBoardId(_id) {
const board = Boards.findOne(_id);
const board = ReactiveCache.getBoard(_id);
return (
board &&
FlowRouter.go('board', {
@ -213,7 +213,7 @@ Utils = {
goCardId(_id) {
const card = Cards.findOne(_id);
const board = Boards.findOne(card.boardId);
const board = ReactiveCache.getBoard(card.boardId);
return (
board &&
FlowRouter.go('card', {