fix: stale closure due to non-unique key to the activity itself

This commit is contained in:
Chris Holland 2024-10-19 06:26:17 -07:00
parent 5ff720ab06
commit 60373ad002
No known key found for this signature in database
GPG key ID: 68B0A864B1B0A0D2

View file

@ -155,7 +155,7 @@ function ChapterElement(props: ChapterElementProps) {
<div className="flex flex-col"> <div className="flex flex-col">
{activities.map((activity: any, index: any) => { {activities.map((activity: any, index: any) => {
return ( return (
<div key={index} className="flex items-center "> <div key={activity.activity_uuid} className="flex items-center ">
<ActivityElement <ActivityElement
orgslug={props.orgslug} orgslug={props.orgslug}
course_uuid={props.course_uuid} course_uuid={props.course_uuid}