@contrail/data-grouping 1.0.47 → 1.0.48

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.
@@ -125,7 +125,7 @@ class DataGroupGenerator {
125
125
  return !objVal;
126
126
  }
127
127
  if (propertyTypeOptions.isDate) {
128
- const objDate = new Date(objVal).toISOString().split('T')[0];
128
+ const objDate = objVal ? new Date(objVal).toISOString().split('T')[0] : null;
129
129
  const valDate = new Date(val).toISOString().split('T')[0];
130
130
  return objDate === valDate;
131
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/data-grouping",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
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",