diff --git a/src/files-ui/components/dropzone/components/DropzoneChildren/DropzoneChildren.tsx b/src/files-ui/components/dropzone/components/DropzoneChildren/DropzoneChildren.tsx index 64407590eef2e73ead5e70f38c39b89520bc88c3..f030f56bda74f70647ae9aa30c77b442f8728c6b 100644 --- a/src/files-ui/components/dropzone/components/DropzoneChildren/DropzoneChildren.tsx +++ b/src/files-ui/components/dropzone/components/DropzoneChildren/DropzoneChildren.tsx @@ -16,11 +16,14 @@ const DropzoneChildren: React.FC<DropzoneChildrenProps> = ( props: DropzoneChildrenProps ) => { const { children, label, localization } = props; + + const isEmptyArray = Array.isArray(children) && children.length===0; + //console.log("isEmptyArray", isEmptyArray,children); const DropzoneLocalizer: LocalLabels = DropzoneLocalizerSelector(localization); //children will be always consider as more important - if (children) { + if (children && !isEmptyArray) { return ( <div className="files-ui-dropzone-children-container">{children}</div> );