Merge pull request #5160 from tsiegleauq/states-with-no-label
Fix null values in recommencation label
This commit is contained in:
commit
cc58f59fa1
@ -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