fix: handle React key prop correctly#1645
Conversation
Signed-off-by: Sbragul26 <sbragul26@gmail.com>
There was a problem hiding this comment.
Code Review
This pull request updates the renderOption prop in UserSearchFieldInput.tsx to destructure and apply the key prop to the list item element. The reviewer identified that destructuring key directly from props will trigger a TypeScript compilation error since key is not defined on React.HTMLAttributes<HTMLLIElement>. To resolve this, the reviewer suggested casting the props to include key and maintaining the original implicit return structure to prevent indentation and syntax issues.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Signed-off-by: Sbragul26 <sbragul26@gmail.com>


Notes for Reviewers
This PR fixes #1644
It removes the React warning caused by spreading the key prop into JSX and passes the key prop correctly.
Signed commits