ngx-wapp-components 3.0.24 → 3.0.25

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.
@@ -5281,6 +5281,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
5281
5281
  type: Input
5282
5282
  }] } });
5283
5283
 
5284
+ const ticketsPeriodSelectType = 'ticketsPeriodSelectType';
5284
5285
  class WFilterPanelComponent {
5285
5286
  constructor(formBuilder, apiService, sessionStorage, localStorage) {
5286
5287
  this.formBuilder = formBuilder;
@@ -5828,7 +5829,11 @@ class WFilterPanelComponent {
5828
5829
  }
5829
5830
  if (value == 'PeriodSelectLast24Hours') {
5830
5831
  const now = new Date();
5831
- this.sessionStorage.setTenantPeriodSelectType(this.localStorage.getTenant().tenantId, 'ticketsPeriodSelectType', PeriodSelectEnum.Last24Hours);
5832
+ let tenantId = this.localStorage.getTenant().tenantId;
5833
+ let ticketsPeriodSelectTypeValue = this.sessionStorage.getTenantPeriodSelectType(tenantId, ticketsPeriodSelectType);
5834
+ if (!ticketsPeriodSelectTypeValue) {
5835
+ this.sessionStorage.setTenantPeriodSelectType(tenantId, ticketsPeriodSelectType, PeriodSelectEnum.Last24Hours);
5836
+ }
5832
5837
  return {
5833
5838
  periodType: PeriodSelectEnum.Last24Hours,
5834
5839
  fromDate: new Date(now.getTime() - 24 * 60 * 60 * 1000),