@visns-studio/visns-components 2.7.2 → 2.7.4

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.
@@ -1806,9 +1806,15 @@ const DataGrid = forwardRef(
1806
1806
  filterEditor: filterEditor,
1807
1807
  filterEditorProps: filterEditorProps,
1808
1808
  render: ({ data }) => {
1809
- if (data && data[column.id]) {
1809
+ if (
1810
+ data &&
1811
+ data[column.id] &&
1812
+ data[column.id] !== ''
1813
+ ) {
1810
1814
  return (
1811
- <span>{parse(data[column.id])}</span>
1815
+ <span>
1816
+ {parse(String(data[column.id]))}
1817
+ </span>
1812
1818
  );
1813
1819
  } else {
1814
1820
  return null;
@@ -53,6 +53,7 @@ function GenericDetail({ setting, urlParam, userProfile }) {
53
53
  setActiveStage(stage.id);
54
54
  } else {
55
55
  if (
56
+ activeTabConfig.stages &&
56
57
  activeTabConfig.stages.url &&
57
58
  activeTabConfig.stages.url !== '' &&
58
59
  activeTabConfig.stages.key &&
@@ -772,7 +773,7 @@ function GenericDetail({ setting, urlParam, userProfile }) {
772
773
  if (activeTab) {
773
774
  const activeTabConfig = tabs.find((t) => t.id === activeTab.id);
774
775
 
775
- if (activeTabConfig.stages && activeTabConfig.stages.key) {
776
+ if (activeTabConfig?.stages?.key) {
776
777
  setActiveStage(data[activeTabConfig.stages.key]);
777
778
  }
778
779
  }
package/package.json CHANGED
@@ -44,7 +44,7 @@
44
44
  "react-dom": "^17.0.1"
45
45
  },
46
46
  "name": "@visns-studio/visns-components",
47
- "version": "2.7.2",
47
+ "version": "2.7.4",
48
48
  "description": "Various packages to assist in the development of our Custom Applications.",
49
49
  "main": "index.js",
50
50
  "scripts": {