fix: ensure correct type when filtering events

Signed-off-by: grnd-alt <github@belakkaf.net>
This commit is contained in:
grnd-alt
2025-06-20 11:40:40 +02:00
parent 8658c7dfca
commit a0e9494ff1

View File

@@ -87,7 +87,7 @@ export default {
// to tell the backend to fetch all activites related to cards of a given board
activities = activities.filter((activity) => {
return (activity.object_type === 'deck_board' && activity.object_id === this.objectId)
|| (activity.object_type === 'deck_card' && activity.subject_rich[1].board.id === this.objectId)
|| (activity.object_type === 'deck_card' && activity.subject_rich[1].board.id === this.objectId.toString())
})
}
this.activities.push(...activities)