@webitel/ui-sdk 3.2.37 → 3.2.39
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.
package/package.json
CHANGED
|
@@ -80,7 +80,8 @@ export default class FiltersStoreModule extends BaseStoreModule {
|
|
|
80
80
|
const value = context.getters.GET_VALUE_FROM_QUERY({ filterQuery: filter });
|
|
81
81
|
if (value) {
|
|
82
82
|
if (filter === 'sort') await context.dispatch('RESTORE_SORT', { value });
|
|
83
|
-
|
|
83
|
+
await context.dispatch('SET_FILTER', ({ filter, value }));
|
|
84
|
+
return true;
|
|
84
85
|
}
|
|
85
86
|
return false;
|
|
86
87
|
},
|
|
@@ -94,7 +95,7 @@ export default class FiltersStoreModule extends BaseStoreModule {
|
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
// if no filters to restore, call LOAD_LIST manually
|
|
97
|
-
if (
|
|
98
|
+
if (restores.every((restore) => restore === false)) {
|
|
98
99
|
context.dispatch('LOAD_DATA_LIST');
|
|
99
100
|
}
|
|
100
101
|
},
|