Basket for survey: fix projects

This commit is contained in:
phil 2024-03-26 14:40:42 +05:30
parent 909e250fe9
commit e38d84f37a

View file

@ -4,7 +4,7 @@
<mat-label>Project</mat-label>
<mat-select formControlName="project">
<mat-option
*ngFor="let item of basket.projects || adminDataService.surveyMeta.projects"
*ngFor="let item of basket.projects.length == 0 ? adminDataService.surveyMeta.projects : basket.projects"
[value]="item.name">
{{ item.name }}
</mat-option>