Fix for issue #1390 caused by secure component having multiple childs (#1394)

Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
Daniel Valdivia
2022-01-14 10:22:01 -08:00
committed by GitHub
parent dcfc74ad0b
commit 826cb41392

View File

@@ -1202,26 +1202,28 @@ const ListObjects = ({
scopes={[IAM_SCOPES.S3_PUT_OBJECT]}
errorProps={{ disabled: true }}
>
<RBIconButton
tooltip={"Upload folder"}
onClick={() => {
if (folderUpload && folderUpload.current) {
folderUpload.current.click();
}
}}
text={""}
icon={<UploadFolderIcon />}
color="primary"
disabled={rewindEnabled}
variant={"outlined"}
/>
<input
type="file"
multiple
onChange={handleUploadButton}
style={{ display: "none" }}
ref={folderUpload}
/>
<Fragment>
<RBIconButton
tooltip={"Upload folder"}
onClick={() => {
if (folderUpload && folderUpload.current) {
folderUpload.current.click();
}
}}
text={""}
icon={<UploadFolderIcon />}
color="primary"
disabled={rewindEnabled}
variant={"outlined"}
/>
<input
type="file"
multiple
onChange={handleUploadButton}
style={{ display: "none" }}
ref={folderUpload}
/>
</Fragment>
</SecureComponent>
<SecureComponent