@webitel/ui-sdk 26.6.125 → 26.6.126

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": "26.6.125",
3
+ "version": "26.6.126",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -51,9 +51,10 @@ const getRoleList = async (params) => {
51
51
  merge(getDefaultGetParams()),
52
52
  starToSearch('search'),
53
53
  (params) => {
54
- params.ids = params.ids || params.id; // accept either ids or id as param
54
+ const rawId = params.id ?? params.ids;
55
55
  return {
56
56
  ...params,
57
+ id: rawId ? [].concat(rawId) : undefined,
57
58
  q: params.search,
58
59
  };
59
60
  },
@@ -63,11 +64,7 @@ const getRoleList = async (params) => {
63
64
 
64
65
  try {
65
66
  const response = await rolesApiFactory.searchRoles(
66
- id
67
- ? [
68
- id,
69
- ]
70
- : null,
67
+ id,
71
68
  name,
72
69
  userId,
73
70
  userName,