@firestitch/filter 12.1.2 → 12.1.3

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.
@@ -5034,7 +5034,9 @@
5034
5034
  FilterComponent.prototype.init = function () {
5035
5035
  var data = this._filterItems.valuesAsQuery();
5036
5036
  this._sort = this._filterItems.getSort();
5037
- this.config.init(data, this._sort);
5037
+ if (this.config.init) {
5038
+ this.config.init(data, this._sort);
5039
+ }
5038
5040
  this._updateChipsVisibility();
5039
5041
  };
5040
5042
  FilterComponent.prototype.clear = function (event) {
@@ -5261,9 +5263,7 @@
5261
5263
  return !pendingParams && itemsReady;
5262
5264
  }), operators.takeUntil(this._destroy$))
5263
5265
  .subscribe(function () {
5264
- if (_this.config.init) {
5265
- _this.init();
5266
- }
5266
+ _this.init();
5267
5267
  _this._syncSearchInputWithKeyword();
5268
5268
  _this.ready.emit();
5269
5269
  });