mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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,4 +1,5 @@
|
|||
import ko from 'ko';
|
||||
import { isArray } from 'Common/Utils';
|
||||
import Remote from 'Remote/Admin/Fetch';
|
||||
|
||||
export const PackageAdminStore = ko.observableArray();
|
||||
|
|
@ -23,7 +24,7 @@ PackageAdminStore.fetch = () => {
|
|||
}
|
||||
});
|
||||
|
||||
if (Array.isArray(data.Result.List)) {
|
||||
if (isArray(data.Result.List)) {
|
||||
list = data.Result.List.map(item => {
|
||||
if (item) {
|
||||
item.loading = ko.observable(loading[item.file] !== undefined);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue