@paperless/angular 0.1.0-alpha.279 → 0.1.0-alpha.280

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.
@@ -2802,6 +2802,7 @@ class TableNgxDirective extends BaseValueAccessor {
2802
2802
  this._base.query = this.lastValue.query = value?.query;
2803
2803
  // this.el.nativeElement.query = this.lastValue.query = value?.query;
2804
2804
  this.lastValue.quickFilter = value?.quickFilter;
2805
+ this.lastValue.filters = value?.filters;
2805
2806
  this._base.page = this.lastValue.page =
2806
2807
  value?.page == null ? 1 : value?.page;
2807
2808
  this._base.pageSize = this.lastValue.pageSize =
@@ -2815,9 +2816,7 @@ class TableNgxDirective extends BaseValueAccessor {
2815
2816
  if (value?.quickFilter) {
2816
2817
  this._setActiveQuickFilter(value.quickFilter);
2817
2818
  }
2818
- if (value?.filters) {
2819
- this._base.selectedFiltersAmount = value.filters.length === 0 ? undefined : value.filters.length;
2820
- }
2819
+ this._base.selectedFiltersAmount = !value.filters || value.filters.length === 0 ? undefined : value.filters.length;
2821
2820
  this._checkEmptyStateType();
2822
2821
  this._checkResetButtons();
2823
2822
  }