@boarteam/boar-pack-common-frontend 2.6.0-alpha.0 → 2.6.0-alpha.2

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": "@boarteam/boar-pack-common-frontend",
3
- "version": "2.6.0-alpha.0",
3
+ "version": "2.6.0-alpha.2",
4
4
  "description": "Common frontend package for Boar Pack",
5
5
  "repository": "git@github.com:boarteam/boar-pack.git",
6
6
  "author": "Andrew Balakirev <balakirev.andrey@gmail.com>",
@@ -46,5 +46,5 @@
46
46
  "scripts": {
47
47
  "yalc:push": "yalc push"
48
48
  },
49
- "gitHead": "38ccd74e5ec92322ac4efaf3482b131d51fca296"
49
+ "gitHead": "754f593790263282b28867173f587da6b142b306"
50
50
  }
@@ -172,7 +172,11 @@ export function buildFieldsFromColumns<T>(
172
172
  // skip id column because it is always included by backend
173
173
  // and join fields because they are included by join
174
174
 
175
- const dataIndex = String(Array.isArray(col.dataIndex) ? col.dataIndex[0] : col.dataIndex);
175
+ const dataIndex = Array.isArray(col.dataIndex) ? col.dataIndex[0] : col.dataIndex;
176
+ if (typeof dataIndex !== 'string') {
177
+ return;
178
+ }
179
+
176
180
  if (!dataIndex || (Array.isArray(idColumnName) ? idColumnName.includes(dataIndex) : dataIndex === idColumnName) || joinFields.has(dataIndex)) {
177
181
  return;
178
182
  }
@@ -53,7 +53,7 @@ export type TGetAllParams = {
53
53
  cache?: number,
54
54
  }
55
55
  export type TFilters = {
56
- [key: string]: number | string | boolean | (string | number)[] | null;
56
+ [key: string]: number | string | boolean | (string | number | boolean)[] | null;
57
57
  }
58
58
 
59
59
  export type TGetRequestParams = {