@contrail/data-grouping 1.0.7 → 1.0.8

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.
@@ -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",