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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add keys for fragment #2812

Merged
merged 1 commit into from
Jun 19, 2023
Merged

fix: add keys for fragment #2812

merged 1 commit into from
Jun 19, 2023

Conversation

Aaaaash
Copy link
Member

@Aaaaash Aaaaash commented Jun 16, 2023

Types

  • 馃悰 Bug Fixes

Background or solution

馃 Generated by Copilot at 7c2a739

  • Simplify the logic for rendering separators in the menu data source by using a hasSeparator variable instead of checking for consecutive separators (link, link)
  • Wrap each menu node in a React.Fragment component with a unique key and conditionally render a Menu.Divider component after each node if hasSeparator is true, to avoid duplicate keys and unnecessary dividers in the actions/index.tsx file (link)

Changelog

馃 Generated by Copilot at 7c2a739

Simplify and fix menu separators in core-browser package. Use a variable and fragments to avoid duplicate or missing dividers between menu nodes in actions/index.tsx.

@opensumi opensumi bot added the 馃悶 bug Something isn't working label Jun 16, 2023
@Ricbet Ricbet merged commit 0df83bd into main Jun 19, 2023
14 checks passed
@Ricbet Ricbet deleted the fix/fix-fragment-keys branch June 19, 2023 12:07
Ricbet pushed a commit that referenced this pull request Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃悶 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants