currentBoard is very often called in jade files, so use there the cache too

This commit is contained in:
Martin Filser 2022-12-11 11:20:03 +01:00
parent 16130b3f73
commit 30d154724a

View file

@ -1,3 +1,5 @@
import { ReactiveCache } from '/imports/reactiveCache';
Utils = {
setBackgroundImage(url) {
const currentBoard = Boards.findOne(Session.get('currentBoard'));
@ -36,7 +38,7 @@ Utils = {
*/
getCurrentBoard() {
const boardId = Utils.getCurrentBoardId();
const ret = Boards.findOne(boardId);
const ret = ReactiveCache.getBoard(boardId);
return ret;
},
getCurrentCard(ignorePopupCard) {