Skip to content

Commit

Permalink
Fix for issue #1390 caused by secure component having multiple childs
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
  • Loading branch information
dvaldivia committed Jan 13, 2022
1 parent dcfc74a commit 9147e92
Showing 1 changed file with 22 additions and 20 deletions.
Expand Up @@ -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}
/>
<>
<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}
/>
</>
</SecureComponent>

<SecureComponent
Expand Down

0 comments on commit 9147e92

Please sign in to comment.