Fix search result details

This commit is contained in:
Patrick Gebhardt 2020-06-22 19:25:07 +02:00
parent 49d207473b
commit d82ce649eb

View File

@ -14,7 +14,7 @@
<tr *ngFor="let score of result.scores" [ngClass]="{'undefined': score.value == undefined}">
<td>
<div class="cell space">
<mat-icon>{{PROPERTY_VIS_DEF[score.type].icon}}</mat-icon>
<mat-icon>{{PROPERTY_VIS_DEF[score.type] ? PROPERTY_VIS_DEF[score.type].icon : 'bar_chart'}}</mat-icon>
<span>{{score.type|translate}}:</span>
</div>
</td>
@ -25,7 +25,12 @@
</td>
<td>
<div class="cell">
<span>{{PROPERTY_VIS_DEF[score.type].unit}}</span>
<span>{{PROPERTY_VIS_DEF[score.type] ? PROPERTY_VIS_DEF[score.type].unit : ''}}</span>
</div>
</td>
<td>
<div class="cell">
<span>({{score.score}})</span>
</div>
</td>
</tr>