@apexcura/ui-components 0.0.13-Beta66 → 0.0.13-Beta67

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/dist/index.js CHANGED
@@ -793,7 +793,7 @@ var UploadElement = (props) => {
793
793
  const [previewImage, setPreviewImage] = (0, import_react23.useState)(null);
794
794
  const uploadChange = (fileList) => {
795
795
  if (!fileList || fileList.length === 0) return;
796
- const existingFiles = props.value;
796
+ const existingFiles = Array.isArray(props.value) ? props.value : [];
797
797
  const newFileList = [...existingFiles];
798
798
  console.log(newFileList);
799
799
  for (let i = 0; i < fileList.length; i++) {
package/dist/index.mjs CHANGED
@@ -737,7 +737,7 @@ var UploadElement = (props) => {
737
737
  const [previewImage, setPreviewImage] = useState7(null);
738
738
  const uploadChange = (fileList) => {
739
739
  if (!fileList || fileList.length === 0) return;
740
- const existingFiles = props.value;
740
+ const existingFiles = Array.isArray(props.value) ? props.value : [];
741
741
  const newFileList = [...existingFiles];
742
742
  console.log(newFileList);
743
743
  for (let i = 0; i < fileList.length; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.13-Beta66",
3
+ "version": "0.0.13-Beta67",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",