Commit 5befc78f authored by Thibault Ehrhart's avatar Thibault Ehrhart

Fix crash when an item has no locality or country

parent c0f95067
......@@ -126,7 +126,7 @@
<div class="date">{{ item.dateCreated.value | date: 'dd/MM/yyyy HH:mm:ss' }}</div>
<div class="title" [innerHTML]="item.headline.value | highlight : search.searchParams.keywords"></div>
<div class="desc" *ngIf="item.description" [innerHTML]="item.description.value | words : 25 | highlight : search.searchParams.keywords"></div>
<div class="source">{{ item.locality.value }} - {{ getCountryName(item.country.value) }}</div>
<div class="source" *ngIf="item.locality || item.country">{{ item.locality.value }} - {{ getCountryName(item.country.value) }}</div>
</div>
</div>
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment