mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Array.isArray to isArray
Array.isNotEmpty to isNonEmptyArray
This commit is contained in:
parent
986b8f056b
commit
0b64083543
30 changed files with 82 additions and 69 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import ko from 'ko';
|
||||
|
||||
import { isNonEmptyArray } from 'Common/Utils';
|
||||
import { AbstractModel } from 'Knoin/AbstractModel';
|
||||
|
||||
import { PgpUserStore } from 'Stores/User/Pgp';
|
||||
|
||||
export class OpenPgpKeyModel extends AbstractModel {
|
||||
|
|
@ -21,7 +21,7 @@ export class OpenPgpKeyModel extends AbstractModel {
|
|||
|
||||
this.index = index;
|
||||
this.id = ID;
|
||||
this.ids = Array.isNotEmpty(IDs) ? IDs : [ID];
|
||||
this.ids = isNonEmptyArray(IDs) ? IDs : [ID];
|
||||
this.guid = guID;
|
||||
this.user = '';
|
||||
this.users = userIDs;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue