Skip to content

fix(webapp): warning on splat with key#361

Merged
henryiii merged 3 commits into
mainfrom
henryiii/fix/warnsplat
Apr 5, 2026
Merged

fix(webapp): warning on splat with key#361
henryiii merged 3 commits into
mainfrom
henryiii/fix/warnsplat

Conversation

@henryiii

@henryiii henryiii commented Apr 5, 2026

Copy link
Copy Markdown
Collaborator

Fix a warning with splat.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes a React warning triggered by spreading an object containing a key prop into JSX in the branch/tag <Autocomplete> option renderer.

Changes:

  • Updates renderOption to avoid spreading key from MUI-provided props onto the <li>.
  • Applies key explicitly on the <li> while spreading the remaining props.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/repo-review-app/repo-review-app.tsx Outdated
@henryiii henryiii merged commit a88edd7 into main Apr 5, 2026
13 checks passed
@henryiii henryiii deleted the henryiii/fix/warnsplat branch April 5, 2026 04:47
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.

2 participants