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 1a715b2 commit 060dd39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default forwardRef(function ThreadActivities(

// Update read mark at first load
useEffect(() => {
if (!thread || !activities || thread.id !== activities[0].threadId) {
if (!thread || !activities || thread.id !== activities[0]?.threadId) {
return
}
const lastActivityId = activities[activities.length - 1]?.id
Expand Down

0 comments on commit 060dd39

Please sign in to comment.