@webitel/ui-sdk 3.2.38 → 3.2.40

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "3.2.38",
3
+ "version": "3.2.40",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -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
- return context.dispatch('SET_FILTER', ({ filter, value }));
83
+ await context.dispatch('SET_FILTER', ({ filter, value }));
84
+ return true;
84
85
  }
85
86
  return false;
86
87
  },
@@ -93,17 +94,15 @@ export default class FiltersStoreModule extends BaseStoreModule {
93
94
  restores.push(result);
94
95
  }
95
96
 
96
- console.info(restores);
97
-
98
97
  // if no filters to restore, call LOAD_LIST manually
99
- if (!restores.every((restore) => restore === false)) {
98
+ if (restores.every((restore) => restore === false)) {
100
99
  context.dispatch('LOAD_DATA_LIST');
101
100
  }
102
101
  },
103
102
  RESET_FILTERS: (context) => {
104
103
  context.commit('RESET_FILTERS');
105
104
  },
106
- ON_FILTER_SET: debounce((context, { filter, value }) => context.dispatch('LOAD_DATA_LIST'), 1000),
105
+ ON_FILTER_SET: debounce((context, { filter, value }) => context.dispatch('LOAD_DATA_LIST'), 500),
107
106
 
108
107
  LOAD_DATA_LIST: (context) => context.dispatch(
109
108
  `${context.getters.TABLE_NAMESPACE}/LOAD_DATA_LIST`,