@visns-studio/visns-components 1.3.2 → 1.3.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.
@@ -1093,10 +1093,11 @@ const DataGrid = forwardRef(
1093
1093
  name: column.id,
1094
1094
  render: ({ data }) => {
1095
1095
  if (data && data[column.id]) {
1096
- value = data[column.id].split("<br />");
1096
+ const value =
1097
+ data[column.id].match(/<p>(.*?)<\/p>/i);
1097
1098
 
1098
- if (value[0]) {
1099
- return <span>{parse(value[0])}</span>;
1099
+ if (value && value[1]) {
1100
+ return <span>{parse(value[1])}</span>;
1100
1101
  } else {
1101
1102
  return null;
1102
1103
  }
package/package.json CHANGED
@@ -34,7 +34,7 @@
34
34
  "react-dom": "^17.0.1"
35
35
  },
36
36
  "name": "@visns-studio/visns-components",
37
- "version": "1.3.2",
37
+ "version": "1.3.3",
38
38
  "description": "Various packages to assist in the development of our Custom Applications.",
39
39
  "main": "index.js",
40
40
  "devDependencies": {},