@visns-studio/visns-components 5.3.2 → 5.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.
package/package.json CHANGED
@@ -78,7 +78,7 @@
78
78
  "react-dom": "^17.0.0 || ^18.0.0"
79
79
  },
80
80
  "name": "@visns-studio/visns-components",
81
- "version": "5.3.2",
81
+ "version": "5.3.3",
82
82
  "description": "Various packages to assist in the development of our Custom Applications.",
83
83
  "main": "src/index.js",
84
84
  "files": [
@@ -713,7 +713,12 @@ const GenericDynamic = ({
713
713
  setActiveFormKey(0);
714
714
  }
715
715
  } else {
716
- setActiveForm(data[type]);
716
+ const activeFormData =
717
+ data[type].length > 0 && Array.isArray(data[type])
718
+ ? data[type][0]
719
+ : data[type];
720
+
721
+ setActiveForm(activeFormData);
717
722
  setActiveFormKey(0);
718
723
  }
719
724
  }