[Library | explore-redesign]: availableOn.component.ts: [Bug fix] Added check if availableOn.length > 0.

This commit is contained in:
Konstantina Galouni 2023-02-18 10:53:40 +02:00
parent 1ca647f56e
commit 10ea930d8a
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ declare var UIkit;
@Component({
selector: 'availableOn',
template: `
<ng-container *ngIf="availableOn">
<ng-container *ngIf="availableOn && availableOn.length > 0">
<div class="uk-flex uk-flex-middle">
<ng-container *ngIf="availableOn[0].downloadUrl">
<span *ngIf="source" class="uk-margin-xsmall-right">Source: </span>