@kuzntsv/uikit 1.0.120 → 1.0.122

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.
@@ -1895,11 +1895,16 @@ var BaseSignalPageClass = class BaseSignalPageClass {
1895
1895
  if (prevVal !== currVal) {
1896
1896
  filterChanged = true;
1897
1897
  const storageKey = `${this.storagePrefix}${String(key)}`;
1898
- if (currVal === null || currVal === void 0 || currVal === "" || currVal === 0 || currVal === -1 || Array.isArray(currVal) && currVal.length === 0) this.localStorageService.removeData(storageKey);
1899
- else this.localStorageService.saveData(storageKey, JSON.stringify(currVal));
1898
+ if (isEmptyFilterValue(currVal)) {
1899
+ this.localStorageService.removeData(storageKey);
1900
+ console.log("removeData", storageKey, "prevVal=", prevVal, "currVal=", currVal);
1901
+ } else this.localStorageService.saveData(storageKey, JSON.stringify(currVal));
1900
1902
  }
1901
1903
  });
1902
- if (filterChanged) {}
1904
+ if (filterChanged) this.tableState.update((prev) => ({
1905
+ ...prev,
1906
+ pageIndex: 0
1907
+ }));
1903
1908
  previousFilters = { ...currentFilters };
1904
1909
  });
1905
1910
  effect(() => {