@cdmx/wappler_ag_grid 1.4.2 → 1.4.4

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.
Files changed (2) hide show
  1. package/dmx-ag-grid.js +9 -1
  2. package/package.json +1 -1
package/dmx-ag-grid.js CHANGED
@@ -722,8 +722,16 @@ dmx.Component('ag-grid', {
722
722
  }
723
723
  // comparator for case-insensitive sorting
724
724
  const caseInsensitiveComparator = (valueA, valueB) => {
725
- return valueA.toLowerCase().localeCompare(valueB.toLowerCase())
725
+ if (valueA === null || valueA === undefined) {
726
+ return valueB === null || valueB === undefined ? 0 : -1;
726
727
  }
728
+
729
+ if (valueB === null || valueB === undefined) {
730
+ return 1;
731
+ }
732
+
733
+ return valueA.toLowerCase().localeCompare(valueB.toLowerCase());
734
+ };
727
735
  dateFilterParams = {
728
736
  comparator: function (filterLocalDateAtMidnight, cellValue) {
729
737
  var cellDate = new Date(cellValue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",