@smartsoft001/crud-shell-angular 1.1.685 → 1.1.686

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.
@@ -2212,9 +2212,12 @@
2212
2212
  if (((_a = this.config.list) === null || _a === void 0 ? void 0 : _a.resetQuery) === 'beforeInit') {
2213
2213
  this.facade.read(Object.assign({ query: this.config.baseQuery ? __spreadArray([], __read(this.config.baseQuery)) : [], paginationMode: this.config.list.paginationMode, limit: this.config.pagination ? this.config.pagination.limit : null, offset: this.config.pagination ? 0 : null, sortBy: this.config.sort ? this.config.sort["default"] : null, sortDesc: this.config.sort ? this.config.sort["defaultDesc"] : null }, this.searchService.filter));
2214
2214
  }
2215
- else {
2215
+ else if (!this.searchService.filter) {
2216
2216
  this.facade.read(Object.assign({ paginationMode: this.config.list.paginationMode, limit: this.config.pagination ? this.config.pagination.limit : null, offset: this.config.pagination ? 0 : null, sortBy: this.config.sort ? this.config.sort["default"] : null, sortDesc: this.config.sort ? this.config.sort["defaultDesc"] : null }, this.searchService.filter));
2217
2217
  }
2218
+ else {
2219
+ this.facade.read(Object.assign({}, this.searchService.filter));
2220
+ }
2218
2221
  endButtons = this.getEndButtons();
2219
2222
  this.pageOptions = {
2220
2223
  title: this.config.title,