mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Speedup listChecked().length to hasChecked()
This commit is contained in:
parent
7ec3d70c60
commit
47a861a243
8 changed files with 28 additions and 20 deletions
|
|
@ -71,7 +71,7 @@ export class ContactsPopupView extends AbstractViewPopup {
|
|||
),
|
||||
|
||||
contactsCheckedOrSelected: () => {
|
||||
const checked = ContactUserStore.filter(item => item.checked?.()),
|
||||
const checked = ContactUserStore.filter(item => item.checked()),
|
||||
selected = this.selectorContact();
|
||||
return checked.length ? checked : (selected ? [selected] : []);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue