Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Jan 14, 2022

Conversation

dvaldivia
Copy link
Collaborator

@dvaldivia dvaldivia commented Jan 13, 2022

Fixes #1390

Signed-off-by: Daniel Valdivia 18384552+dvaldivia@users.noreply.github.com

…hilds

Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
style={{ display: "none" }}
ref={folderUpload}
/>
<>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use <Fragment> for consistency

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see most examples on react using this shorthand, we should start adopting it

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we would need to change across all the code. I think Fragment is better because is more clear what this is referring to.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

328

style={{ display: "none" }}
ref={folderUpload}
/>
<>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we would need to change across all the code. I think Fragment is better because is more clear what this is referring to.

Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
style={{ display: "none" }}
ref={folderUpload}
/>
<Fragment>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! =D

Copy link
Collaborator

@cniackz cniackz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Learning from it:
A fragment lets us group multiple JSX elements without adding an extra wrapper node.

@bexsoft bexsoft merged commit 826cb41 into minio:master Jan 14, 2022
@bexsoft bexsoft deleted the fix-1390 branch January 14, 2022 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

App crashes when a user with Bucket Read policies clicks on Browse button for a Bucket
5 participants