@contrail/data-grouping 1.0.12 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
@@ -10,9 +10,9 @@ class DataGroupGenerator {
|
|
10
10
|
if (!obj) {
|
11
11
|
return;
|
12
12
|
}
|
13
|
-
let key = obj
|
13
|
+
let key = util_1.ObjectUtil.getByPath(obj, index);
|
14
14
|
let value = key;
|
15
|
-
if (typeof key === 'object') {
|
15
|
+
if (key && value && typeof key === 'object') {
|
16
16
|
key = value.id || value.name || value;
|
17
17
|
}
|
18
18
|
map[key] = value;
|
package/package.json
CHANGED