@cdmx/wappler_ag_grid 0.8.2 → 0.8.3

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 +7 -2
  2. package/package.json +1 -1
package/dmx-ag-grid.js CHANGED
@@ -351,11 +351,16 @@ dmx.Component('ag-grid', {
351
351
  if (params.value == null) {
352
352
  return "-";
353
353
  }
354
-
355
354
  if (typeof params.value === "string") {
356
355
  return params.value.trim() === "" ? "-" : params.value;
357
356
  }
358
-
357
+ if (typeof params.value === "object") {
358
+ try {
359
+ return JSON.stringify(params.value);
360
+ } catch (error) {
361
+ return "Object cannot be stringified";
362
+ }
363
+ }
359
364
  return params.value;
360
365
  }
361
366
  function formatDate(timestamp) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",