@firestitch/filter 12.2.0 → 12.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2486,11 +2486,12 @@
2486
2486
  };
2487
2487
  PersistanceParamsController.prototype.restore = function () {
2488
2488
  _super.prototype.restore.call(this);
2489
+ var items = __spreadArray(__spreadArray([], __read(this._itemsStore.items)), [
2490
+ this._itemsStore.sortByItem,
2491
+ this._itemsStore.sortDirectionItem,
2492
+ ]).filter(function (item) { return !!item; });
2489
2493
  if (this._value) {
2490
- this._value.data = restoreItems(this._value.data, __spreadArray(__spreadArray([], __read(this._itemsStore.items)), [
2491
- this._itemsStore.sortByItem,
2492
- this._itemsStore.sortDirectionItem,
2493
- ]), this._paramsCase);
2494
+ this._value.data = restoreItems(this._value.data, items, this._paramsCase);
2494
2495
  }
2495
2496
  };
2496
2497
  return PersistanceParamsController;
@@ -2551,10 +2552,11 @@
2551
2552
  * Parse query and update filter values
2552
2553
  */
2553
2554
  QueryParamsController.prototype.fetchFromQueryParams = function () {
2554
- this._fetchedParams = restoreItems(this._route.snapshot.queryParams, __spreadArray(__spreadArray([], __read(this._itemsStore.items)), [
2555
+ var items = __spreadArray(__spreadArray([], __read(this._itemsStore.items)), [
2555
2556
  this._itemsStore.sortByItem,
2556
2557
  this._itemsStore.sortDirectionItem,
2557
- ]), this._paramsCase);
2558
+ ]).filter(function (item) { return !!item; });
2559
+ this._fetchedParams = restoreItems(this._route.snapshot.queryParams, items, this._paramsCase);
2558
2560
  };
2559
2561
  return QueryParamsController;
2560
2562
  }());