dce-reactkit 3.2.2-beta.30 → 3.2.2-beta.32

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/dist/esm/index.js CHANGED
@@ -2208,12 +2208,12 @@ const roundToNumDecimals = (num, numDecimals) => {
2208
2208
  * @returns escaped cell text
2209
2209
  */
2210
2210
  const escapeCellText = (text) => {
2211
- if (!text.includes(',')) {
2211
+ if (!String(text).includes(',')) {
2212
2212
  // No need to escape
2213
- return text;
2213
+ return String(text);
2214
2214
  }
2215
2215
  // Perform escape
2216
- return `"${text.replace(/"/g, '""')}`;
2216
+ return `"${String(text).replace(/"/g, '""')}`;
2217
2217
  };
2218
2218
  /**
2219
2219
  * Generate a CSV file
@@ -2519,7 +2519,7 @@ const IntelliTable = (props) => {
2519
2519
  }
2520
2520
  else if (column.type === ParamType$1.String) {
2521
2521
  fullValue = String(value).trim();
2522
- const noValue = (value.trim().length) === 0;
2522
+ const noValue = (String(fullValue).trim().length === 0);
2523
2523
  visibleValue = (noValue
2524
2524
  ? (React.createElement(FontAwesomeIcon, { icon: faMinus }))
2525
2525
  : fullValue);