Move every Lists.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory client/)

This commit is contained in:
Martin Filser 2023-02-19 17:32:57 +01:00
parent c2139662cd
commit 4a8dcde8ee
6 changed files with 14 additions and 14 deletions

View file

@ -799,7 +799,7 @@ BlazeComponent.extendComponent({
},
lists() {
return Lists.find(
return ReactiveCache.getLists(
{
boardId: this.currentBoard._id,
archived: false,
@ -811,7 +811,7 @@ BlazeComponent.extendComponent({
},
hasLists() {
return this.lists().count() > 0;
return this.lists().length > 0;
},
isListSelected() {
@ -998,7 +998,7 @@ BlazeComponent.extendComponent({
},
lists() {
return Lists.find(
return ReactiveCache.getLists(
{
boardId: this.currentBoard._id,
archived: false,
@ -1010,7 +1010,7 @@ BlazeComponent.extendComponent({
},
hasLists() {
return this.lists().count() > 0;
return this.lists().length > 0;
},
isListSelected() {
@ -1346,7 +1346,7 @@ BlazeComponent.extendComponent({
},
lists() {
return Lists.find(
return ReactiveCache.getLists(
{
boardId: this.currentBoard._id,
archived: false,
@ -1358,7 +1358,7 @@ BlazeComponent.extendComponent({
},
hasLists() {
return this.lists().count() > 0;
return this.lists().length > 0;
},
isListSelected() {