Skip to content

Commit

Permalink
Fixed using array index as key in lists (#2685)
Browse files Browse the repository at this point in the history
  • Loading branch information
Made1ra authored Nov 14, 2024
1 parent edc988a commit 5dfe7c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const AddProfessionalCategoryModal: FC<AddProfessionalCategoryModalProps> = ({
disableOptions={data.subjects as Array<Partial<SubjectInterface>>}
handleChange={handleProfessionalSubjectChange(index)}
handleSubjectDelete={() => handleSubjectDelete(subject._id || '')}
key={index}
key={subject._id}
selectedCategory={data.category?._id || ''}
subject={{
...subject
Expand Down

0 comments on commit 5dfe7c6

Please sign in to comment.