Skip to content

Commit

Permalink
Fix dep in ThreadActivities
Browse files Browse the repository at this point in the history
  • Loading branch information
Godefroy committed Jun 29, 2024
1 parent 023e5d4 commit 1a715b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default forwardRef(function ThreadActivities(
// Reset
setLastReadActivityId(undefined)
}
}, [thread?.id, activities?.[0].threadId])
}, [thread?.id, activities?.[0]?.threadId])

// Update read mark when last read activity changes
useEffect(() => {
Expand Down

0 comments on commit 1a715b2

Please sign in to comment.