mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Move every Lists.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory client/)
This commit is contained in:
parent
c2139662cd
commit
4a8dcde8ee
6 changed files with 14 additions and 14 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue