@contrail/data-grouping 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,7 +39,7 @@ class DataGroupGenerator {
39
39
  data: [],
40
40
  },
41
41
  groupingProperties,
42
- depth: groupingProperties ? groupingProperties.length + 1 : 0,
42
+ depth: groupingProperties ? groupingProperties.length : 0,
43
43
  };
44
44
  this.buildChildDataGroups(data, structure.rootGroup, groupingProperties, leafNodeDataCount, 0);
45
45
  return structure;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/data-grouping",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
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",