@visns-studio/visns-components 4.10.12 → 4.10.13

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
@@ -75,7 +75,7 @@
75
75
  "react-dom": "^17.0.0 || ^18.0.0"
76
76
  },
77
77
  "name": "@visns-studio/visns-components",
78
- "version": "4.10.12",
78
+ "version": "4.10.13",
79
79
  "description": "Various packages to assist in the development of our Custom Applications.",
80
80
  "main": "src/index.js",
81
81
  "files": [
@@ -637,10 +637,14 @@ const GenericDynamic = ({
637
637
  if (
638
638
  Object.keys(activeForm).length === 0 &&
639
639
  templateStatus &&
640
- formData[0]
640
+ formData[0] &&
641
+ formData[0].created_at
641
642
  ) {
642
643
  setActiveForm(formData[0]);
643
644
  setActiveFormKey(0);
645
+ } else {
646
+ setActiveForm(formData);
647
+ setActiveFormKey(0);
644
648
  }
645
649
  } else {
646
650
  setActiveForm(formData);
@@ -818,6 +822,7 @@ const GenericDynamic = ({
818
822
  ? Object.entries(activeForm)
819
823
  .filter(
820
824
  ([key, value]) =>
825
+ value && // Add this check to ensure value is not null
821
826
  typeof value === 'object' &&
822
827
  [
823
828
  'id',