@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.
- package/dmx-ag-grid.js +7 -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) {
|