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 Crashing UI on RefDropdown #5043

Closed
wants to merge 1 commit into from
Closed

Fix Crashing UI on RefDropdown #5043

wants to merge 1 commit into from

Conversation

itaiad200
Copy link
Contributor

closes #5042

@itaiad200 itaiad200 added bug Something isn't working area/UI Improvements or additions to UI include-changelog PR description should be included in next release changelog labels Jan 15, 2023
Copy link
Collaborator

@ozkatz ozkatz left a comment

Choose a reason for hiding this comment

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

Thanks but I believe this is a dependency issue! Can you try and check?

@@ -221,7 +221,7 @@ const RefDropdown = ({ repo, selected, selectRef, onCancel, variant="light", pre
const popover = (
<Overlay target={target.current} show={show} placement="bottom" rootClose={true} onHide={() => setShow(false)}>
<Popover className="ref-popover">
<Popover.Body>
<Popover.Content>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Popover in v2.7.0 (which is the one we're now using) has a Body property instead of a Content one.

see: https://github.com/react-bootstrap/react-bootstrap/blob/v2.7.0/src/Popover.tsx#L131

I'm guessing your npm dependencies are out of date (npm install or maybe ever delete your existing node_modules)

Copy link
Collaborator

Choose a reason for hiding this comment

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

additionally, make sure you re-generate the UI (make gen-ui)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah it worked after deleting node_modules, npm install by itself wasn't enough. Closing, sorry for the noise..

@ozkatz
Copy link
Collaborator

ozkatz commented Jan 15, 2023

For more context: #5034

@itaiad200 itaiad200 closed this Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/UI Improvements or additions to UI bug Something isn't working include-changelog PR description should be included in next release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lakeFS UI crashes when clicking on branch filtering
2 participants