dce-reactkit 3.2.2-beta.31 → 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/cjs/index.js CHANGED
@@ -2216,12 +2216,12 @@ const roundToNumDecimals = (num, numDecimals) => {
2216
2216
  * @returns escaped cell text
2217
2217
  */
2218
2218
  const escapeCellText = (text) => {
2219
- if (!text.includes(',')) {
2219
+ if (!String(text).includes(',')) {
2220
2220
  // No need to escape
2221
- return text;
2221
+ return String(text);
2222
2222
  }
2223
2223
  // Perform escape
2224
- return `"${text.replace(/"/g, '""')}`;
2224
+ return `"${String(text).replace(/"/g, '""')}`;
2225
2225
  };
2226
2226
  /**
2227
2227
  * Generate a CSV file