@webitel/ui-datalist 1.1.43 → 1.1.44

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-datalist",
3
- "version": "1.1.43",
3
+ "version": "1.1.44",
4
4
  "description": "Toolkit for building data lists in webitel ui system",
5
5
  "scripts": {
6
6
  "build:types": "vue-tsc -p ./tsconfig.build.json",
@@ -39,9 +39,16 @@ class ContactGroupFilterConfig extends WtSysTypeFilterConfig {
39
39
  // params.id /* wt-select options loadings */
40
40
  // filterValue?.list; /* newest and coolest, but not implemented on all filters 🥲 */
41
41
 
42
+ // This endpoint uses `limit = size + 1`, so the preview's `size: -1`
43
+ // becomes `limit: 0` and returns nothing. Request as many records as
44
+ // there are ids instead.
45
+ const idsCount = Array.isArray(id) ? id.length : 0;
46
+ const size = idsCount || params.size;
47
+
42
48
  return contactGroups.getLookup({
43
49
  ...params,
44
50
  id,
51
+ size,
45
52
  type: 'STATIC',
46
53
  });
47
54
  }