diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/PersonsAssociated.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/PersonsAssociated.vue index 13294b232..edde7fbdb 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/PersonsAssociated.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/PersonsAssociated.vue @@ -11,7 +11,7 @@
state.accompanyingCourse.participations, - counter: state => state.accompanyingCourse.participations.length - }), + computed: { + ...mapState({ + participations: state => state.accompanyingCourse.participations, + counter: state => state.accompanyingCourse.participations.length + }), + currentParticipations() { + return this.participations.filter(p => p.endDate === null) + } + }, methods: { removeParticipation(item) { //console.log('@@ CLICK remove participation: item', item);