Merge Objects prototype extensions

This commit is contained in:
djmaze 2020-09-04 17:07:35 +02:00
parent 0647b5201f
commit f2d194947d
26 changed files with 108 additions and 127 deletions

View file

@ -1,7 +1,7 @@
import ko from 'ko';
import { FilterRulesType, FiltersAction } from 'Common/Enums';
import { pString, isNonEmptyArray, fakeMd5, delegateRunOnDestroy } from 'Common/Utils';
import { pString, fakeMd5, delegateRunOnDestroy } from 'Common/Utils';
import { i18n } from 'Common/Translator';
import { getFolderFromCacheList } from 'Common/Cache';
@ -225,7 +225,7 @@ class FilterModel extends AbstractModel {
this.conditions([]);
if (isNonEmptyArray(json.Conditions)) {
if (Array.isNotEmpty(json.Conditions)) {
this.conditions(
json.Conditions.map(aData => {
const filterCondition = new FilterConditionModel();