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.cjs
CHANGED
|
@@ -483,10 +483,10 @@ var Attachment = ({
|
|
|
483
483
|
const [isDragFile, setIsDragFile] = (0, import_react5.useState)(false);
|
|
484
484
|
const inputRef = (0, import_react5.useRef)(null);
|
|
485
485
|
(0, import_react5.useEffect)(() => {
|
|
486
|
-
if (initialFiles.length > 0) {
|
|
486
|
+
if (initialFiles && initialFiles.length > 0) {
|
|
487
487
|
setFiles(initialFiles);
|
|
488
488
|
}
|
|
489
|
-
}, [
|
|
489
|
+
}, []);
|
|
490
490
|
const handleDrop = (event2) => {
|
|
491
491
|
event2.preventDefault();
|
|
492
492
|
setIsDragFile(false);
|