mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 15:43:51 +00:00
Filter accompanying period works in evaluation selector mode
- Add filtering to show only accompanying period works with evaluations in evaluation selector mode
This commit is contained in:
@@ -94,7 +94,13 @@ const getAccompanyingPeriodWorks = (periodId: number) => {
|
||||
|
||||
makeFetch<number, AccompanyingPeriodWork[]>("GET", url)
|
||||
.then((response) => {
|
||||
accompanyingPeriodWorks.value = response;
|
||||
if (props.isEvaluationSelector) {
|
||||
accompanyingPeriodWorks.value = response.filter(
|
||||
(acpw) => acpw.accompanyingPeriodWorkEvaluations.length > 0,
|
||||
);
|
||||
} else {
|
||||
accompanyingPeriodWorks.value = response;
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log(error);
|
||||
|
Reference in New Issue
Block a user