@esfaenza/admin-module 11.2.31 → 11.2.32

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.
@@ -1183,23 +1183,22 @@
1183
1183
  if (update === void 0) { update = false; }
1184
1184
  if (searchViewOverride === void 0) { searchViewOverride = null; }
1185
1185
  return __awaiter(this, void 0, void 0, function () {
1186
- var dateRequestOnRealtimeWindow;
1186
+ var sv, dateRequestOnRealtimeWindow;
1187
1187
  return __generator(this, function (_a) {
1188
1188
  switch (_a.label) {
1189
1189
  case 0:
1190
- if (!((this.searchView.filterfrom || this.searchView.filterto) && !this.rtWindow)) return [3 /*break*/, 2];
1190
+ sv = searchViewOverride !== null && searchViewOverride !== void 0 ? searchViewOverride : this.searchView;
1191
+ if (!((sv.filterfrom || sv.filterto) && !this.rtWindow)) return [3 /*break*/, 2];
1191
1192
  return [4 /*yield*/, this.updateRealTimeWindow()];
1192
1193
  case 1:
1193
1194
  _a.sent();
1194
1195
  _a.label = 2;
1195
1196
  case 2:
1196
- dateRequestOnRealtimeWindow = this.searchView.filterfrom && this.dateExts.getDateConvertion(this.searchView.filterfrom).isAfter(this.rtWindow.from) &&
1197
- this.searchView.filterto && this.dateExts.getDateConvertion(this.searchView.filterto).isBefore(this.rtWindow.to);
1198
- this.searchView.filterrealtime = dateRequestOnRealtimeWindow;
1199
- this.searchView.searchinprogress = true;
1200
- if (resetPage)
1201
- this.searchView.page = 1;
1202
- this.POSTGetItems(this.backend + Repository.POST_Adm_GetTopActivities, searchViewOverride !== null && searchViewOverride !== void 0 ? searchViewOverride : this.searchView, update);
1197
+ dateRequestOnRealtimeWindow = sv.filterfrom && this.dateExts.getDateConvertion(sv.filterfrom).isAfter(this.rtWindow.from) &&
1198
+ sv.filterto && this.dateExts.getDateConvertion(sv.filterto).isBefore(this.rtWindow.to);
1199
+ sv.filterrealtime = dateRequestOnRealtimeWindow;
1200
+ sv.searchinprogress = true;
1201
+ this.POSTGetItems(this.backend + Repository.POST_Adm_GetTopActivities, sv, update);
1203
1202
  return [2 /*return*/];
1204
1203
  }
1205
1204
  });