@contrail/data-grouping 1.0.12 → 1.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ class DataGroupGenerator {
10
10
  if (!obj) {
11
11
  return;
12
12
  }
13
- let key = obj[index];
13
+ let key = util_1.ObjectUtil.getByPath(obj, index);
14
14
  let value = key;
15
15
  if (typeof key === 'object') {
16
16
  key = value.id || value.name || value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/data-grouping",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Utilities and interfaces for grouping data into hierarchial data structures based on properties.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",