RubyGems
npm
PyPI
Organizations
Log in
Sign up
npm
@contrail/data-grouping
Versions diffs
1.0.13 → 1.0.14
@contrail/data-grouping 1.0.13 → 1.0.14
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
package/lib/data-group-generator/data-group-generator.js
+1
-1
package/package.json
+1
-1
package/lib/data-group-generator/data-group-generator.js
CHANGED
Viewed
@@ -12,7 +12,7 @@ class DataGroupGenerator {
12
12
}
13
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
Viewed
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@contrail/data-grouping",
3
-
"version": "1.0.
13
",
3
+
"version": "1.0.
14
",
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",