Skip to content

Commit

Permalink
Fix non-unique key issue
Browse files Browse the repository at this point in the history
  • Loading branch information
NickPhura committed Oct 20, 2023
1 parent 336a266 commit 58616cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/features/projects/components/ProjectUserForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const ProjectUserForm: React.FC<IProjectUser> = (props) => {
)}
renderOption={(renderProps, renderOption) => {
return (
<Box component="li" {...renderProps}>
<Box component="li" {...renderProps} key={renderOption.system_user_id}>
<UserCard
name={renderOption.display_name}
email={renderOption.email}
Expand Down
2 changes: 1 addition & 1 deletion app/src/features/surveys/components/SurveyUserForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const SurveyUserForm: React.FC<ISurveyUser> = (props) => {
)}
renderOption={(renderProps, renderOption) => {
return (
<Box component="li" {...renderProps}>
<Box component="li" {...renderProps} key={renderOption.system_user_id}>
<UserCard
name={renderOption.display_name}
email={renderOption.email}
Expand Down

0 comments on commit 58616cd

Please sign in to comment.