@apexcura/ui-components 0.0.13-Beta60 → 0.0.13-Beta61
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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 newFileList = [];
|
|
796
|
+
const newFileList = [...props.value];
|
|
797
797
|
for (let i = 0; i < fileList.length; i++) {
|
|
798
798
|
const selectedFile = fileList[i];
|
|
799
799
|
const isCorrectFile = ["image/png", "image/jpg", "image/jpeg"].includes(
|
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 newFileList = [];
|
|
740
|
+
const newFileList = [...props.value];
|
|
741
741
|
for (let i = 0; i < fileList.length; i++) {
|
|
742
742
|
const selectedFile = fileList[i];
|
|
743
743
|
const isCorrectFile = ["image/png", "image/jpg", "image/jpeg"].includes(
|