@kuzntsv/uikit 1.0.125 → 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,13 +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
|
|
1888
|
+
let isInitialized = false;
|
|
1889
|
+
let previousFilters = null;
|
|
1889
1890
|
effect(() => {
|
|
1891
|
+
console.log("previousFilters=", previousFilters);
|
|
1890
1892
|
const currentFilters = this.filters();
|
|
1891
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
|
+
}
|
|
1892
1899
|
let filterChanged = false;
|
|
1893
1900
|
Object.keys(currentFilters).forEach((key) => {
|
|
1894
|
-
const prevVal = previousFilters[key];
|
|
1901
|
+
const prevVal = previousFilters ? previousFilters[key] : void 0;
|
|
1895
1902
|
const currVal = currentFilters[key];
|
|
1896
1903
|
console.log("loop by key=", key, "prevVal=", prevVal, "currVal=", currVal);
|
|
1897
1904
|
if (prevVal !== currVal) {
|