componentes-sinco 1.0.24 → 1.0.25
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.cjs +2 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -484,21 +484,9 @@ var Attachment = ({
|
|
|
484
484
|
const inputRef = (0, import_react5.useRef)(null);
|
|
485
485
|
(0, import_react5.useEffect)(() => {
|
|
486
486
|
if (initialFiles && initialFiles.length > 0) {
|
|
487
|
-
|
|
488
|
-
if ("progress" in file) {
|
|
489
|
-
return file;
|
|
490
|
-
}
|
|
491
|
-
return {
|
|
492
|
-
name: file.name,
|
|
493
|
-
size: file.size,
|
|
494
|
-
type: file.type,
|
|
495
|
-
progress: 100,
|
|
496
|
-
uploadError: false
|
|
497
|
-
};
|
|
498
|
-
});
|
|
499
|
-
setFiles(mapped);
|
|
487
|
+
setFiles(initialFiles);
|
|
500
488
|
}
|
|
501
|
-
}, [
|
|
489
|
+
}, []);
|
|
502
490
|
const handleDrop = (event2) => {
|
|
503
491
|
event2.preventDefault();
|
|
504
492
|
setIsDragFile(false);
|