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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.2.2-beta.30",
3
+ "version": "3.2.2-beta.32",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -469,7 +469,7 @@ const IntelliTable: React.FC<Props> = (props) => {
469
469
  title = String(fullValue);
470
470
  } else if (column.type === ParamType.String) {
471
471
  fullValue = String(value).trim();
472
- const noValue = (value.trim().length) === 0;
472
+ const noValue = (String(fullValue).trim().length === 0);
473
473
  visibleValue = (
474
474
  noValue
475
475
  ? (
@@ -5,13 +5,13 @@
5
5
  * @returns escaped cell text
6
6
  */
7
7
  const escapeCellText = (text: string): string => {
8
- if (!text.includes(',')) {
8
+ if (!String(text).includes(',')) {
9
9
  // No need to escape
10
- return text;
10
+ return String(text);
11
11
  }
12
12
 
13
13
  // Perform escape
14
- return `"${text.replace(/"/g, '""')}`;
14
+ return `"${String(text).replace(/"/g, '""')}`;
15
15
  };
16
16
 
17
17
  /**