@rxap/material-table-system 13.0.1 → 13.0.2

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.
@@ -496,13 +496,21 @@ class TableFilterService {
496
496
  constructor() {
497
497
  this.change = new ReplaySubject(1);
498
498
  this.current = {};
499
+ /**
500
+ * a flag to indicate whether any value was already send to the change subject
501
+ * true - a value was send
502
+ * false - no value was send
503
+ * @private
504
+ */
505
+ this._init = false;
499
506
  this._subscription = this.change.subscribe(current => this.current = current);
500
507
  }
501
508
  setMap(map) {
502
509
  const current = this.current;
503
510
  const copy = clone(this.current);
504
511
  const next = DeleteEmptyProperties(Object.assign(current, map));
505
- if (!equals(copy, next)) {
512
+ if (!this._init || !equals(copy, next)) {
513
+ this._init = true;
506
514
  this.change.next(next);
507
515
  }
508
516
  }