Fix null values in recommencation label
Fixes an issue that was showing empty values when setting a recommendation
This commit is contained in:
parent
77bf24fe3a
commit
af9a62abbb
@ -47,7 +47,7 @@ export class ViewMotion extends BaseViewModelWithAgendaItemAndListOfSpeakers<Mot
|
||||
}
|
||||
|
||||
public get possibleRecommendations(): ViewState[] {
|
||||
return this.workflow ? this.workflow.states.filter(state => state.recommendation_label !== undefined) : null;
|
||||
return this.workflow ? this.workflow.states.filter(state => state.recommendation_label) : [];
|
||||
}
|
||||
|
||||
public get agenda_type(): number | null {
|
||||
|
@ -274,7 +274,14 @@
|
||||
</div>
|
||||
|
||||
<!-- Recommendation -->
|
||||
<div *ngIf="(perms.isAllowed('change_metadata') || motion.recommendation) && recommender && !editMotion">
|
||||
<div
|
||||
*ngIf="
|
||||
(perms.isAllowed('change_metadata') || motion.recommendation) &&
|
||||
recommender &&
|
||||
motion.possibleRecommendations.length &&
|
||||
!editMotion
|
||||
"
|
||||
>
|
||||
<os-extension-field
|
||||
title="{{ recommender }}"
|
||||
[inputValue]="recommendationStateExtension"
|
||||
|
Loading…
Reference in New Issue
Block a user