Skip to content

Commit

Permalink
🐛 Added fallback value for empty subrack names
Browse files Browse the repository at this point in the history
  • Loading branch information
juriadams committed Jul 7, 2020
1 parent 341a75f commit c494c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/pages/devices/device/device.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h5 style="margin-top: 35px;">SUBRACKS</h5>
<p *ngIf="subracksRequest === 'success' && subracks.length === 0">Device has no Subrack(s)</p>
<ul *ngIf="subracksRequest === 'success'" style="padding-left: 25px;">
<li *ngFor="let subrack of subracks">
<a nz-button nzType="link" nzSize="small" [routerLink]="['subrack', subrack.id]">{{ subrack.name }}</a>
<a nz-button nzType="link" nzSize="small" [routerLink]="['subrack', subrack.id]">{{ subrack.name || "Unnamed Subrack" }}</a>
</li>

<li>
Expand Down

0 comments on commit c494c0f

Please sign in to comment.