mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
accompanying course: filter suggested entities by open participations
This commit is contained in:
parent
7dd6cd04ba
commit
fc9deb8ba8
@ -199,7 +199,7 @@ export default {
|
|||||||
...mapState({
|
...mapState({
|
||||||
suggestedEntities: state => {
|
suggestedEntities: state => {
|
||||||
return [
|
return [
|
||||||
...state.accompanyingCourse.participations.map(p => p.person),
|
...state.accompanyingCourse.participations.filter((p) => p.endDate === null).map((p) => p.person),
|
||||||
...state.accompanyingCourse.resources.map(r => r.resource)
|
...state.accompanyingCourse.resources.map(r => r.resource)
|
||||||
]
|
]
|
||||||
.filter((e) => e !== null)
|
.filter((e) => e !== null)
|
||||||
|
@ -77,7 +77,7 @@ export default {
|
|||||||
counter: state => state.accompanyingCourse.resources.length,
|
counter: state => state.accompanyingCourse.resources.length,
|
||||||
suggestedEntities: state => [
|
suggestedEntities: state => [
|
||||||
state.accompanyingCourse.requestor,
|
state.accompanyingCourse.requestor,
|
||||||
...state.accompanyingCourse.participations.map(p => p.person),
|
...state.accompanyingCourse.participations.filter((p) => p.endDate === null).map((p) => p.person),
|
||||||
]
|
]
|
||||||
.filter((e) => e !== null)
|
.filter((e) => e !== null)
|
||||||
.filter(
|
.filter(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user