@kuzntsv/uikit 1.0.126 → 1.0.127

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.
@@ -1885,14 +1885,20 @@ var BaseSignalPageClass = class BaseSignalPageClass {
1885
1885
  pageIndex: Number(this.localStorageService.getData(this.constructor.name + "PageIndex")) || this.defaultPageIndex,
1886
1886
  pageSize: Number(this.localStorageService.getData(this.constructor.name + "PageSize")) || this.defaultPageSize
1887
1887
  });
1888
- let previousFilters = { ...this.filters() };
1888
+ let isInitialized = false;
1889
+ let previousFilters = null;
1889
1890
  effect(() => {
1890
1891
  console.log("previousFilters=", previousFilters);
1891
1892
  const currentFilters = this.filters();
1892
1893
  console.log("currentFilters=", currentFilters);
1894
+ if (!isInitialized || Object.keys(currentFilters).length === 0) {
1895
+ previousFilters = { ...currentFilters };
1896
+ if (Object.keys(currentFilters).length > 0) isInitialized = true;
1897
+ return;
1898
+ }
1893
1899
  let filterChanged = false;
1894
1900
  Object.keys(currentFilters).forEach((key) => {
1895
- const prevVal = previousFilters[key];
1901
+ const prevVal = previousFilters ? previousFilters[key] : void 0;
1896
1902
  const currVal = currentFilters[key];
1897
1903
  console.log("loop by key=", key, "prevVal=", prevVal, "currVal=", currVal);
1898
1904
  if (prevVal !== currVal) {