From 6a51e72b5774f59e3f3f3d853ae623a65fd4265f Mon Sep 17 00:00:00 2001
From: Alex ORLUC <alex.orluc@maarch.org>
Date: Mon, 12 Oct 2020 10:15:37 +0200
Subject: [PATCH] FEAT #13271 TIME 0:05 fix label

---
 .../app/adv-search/filter-tool/filter-tool.component.html       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/frontend/app/adv-search/filter-tool/filter-tool.component.html b/src/frontend/app/adv-search/filter-tool/filter-tool.component.html
index 9eef6f130d2..05caab0594c 100644
--- a/src/frontend/app/adv-search/filter-tool/filter-tool.component.html
+++ b/src/frontend/app/adv-search/filter-tool/filter-tool.component.html
@@ -8,7 +8,7 @@
         <div class="catGroupTitle">{{'lang.'+filterKey.key | translate}} ({{filters[filterKey.key].length}})</div>
         <mat-divider style="width: 80%;"></mat-divider>
         <mat-list-option color="primary" class="catContent" *ngFor="let cat of filters[filterKey.key];let i=index" (click)="toggleFilter(filterKey.key,i)" [selected]="cat.selected" checkboxPosition="before">
-            <span class="catLabel" [title]="cat.label">{{cat.label}}</span><span class="catBadge">{{cat.count}}</span>
+            <span class="catLabel" [title]="cat.label">{{cat.id !== null ? cat.label : 'lang.undefined' | translate}}</span><span class="catBadge">{{cat.count}}</span>
         </mat-list-option>
     </mat-selection-list>
 </mat-expansion-panel>
-- 
GitLab