@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
|
@@ -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
|
}
|