componentes-sinco 1.0.23 → 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 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -415,10 +415,10 @@ var Attachment = ({
|
|
|
415
415
|
const [isDragFile, setIsDragFile] = useState4(false);
|
|
416
416
|
const inputRef = useRef(null);
|
|
417
417
|
useEffect4(() => {
|
|
418
|
-
if (initialFiles.length > 0) {
|
|
418
|
+
if (initialFiles && initialFiles.length > 0) {
|
|
419
419
|
setFiles(initialFiles);
|
|
420
420
|
}
|
|
421
|
-
}, [
|
|
421
|
+
}, []);
|
|
422
422
|
const handleDrop = (event2) => {
|
|
423
423
|
event2.preventDefault();
|
|
424
424
|
setIsDragFile(false);
|