Skip to content

Commit

Permalink
Add optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
Mutugiii committed Oct 22, 2024
1 parent 07bad5f commit 3439c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/community/community.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h3 style="text-align: right; margin-right: 0.5rem;">
<button mat-stroked-button (click)="openAddMessageDialog()" *ngIf="showNewsButton" i18n>New Voice</button>
</ng-container>
</h3>
<ng-container *ngIf="news.length > 0; else noVoices">
<ng-container *ngIf="news?.length > 0; else noVoices">
<planet-news-list [items]="news" [shareTarget]="shareTarget" (viewChange)="toggleShowButton($event)" [viewableId]="teamId"></planet-news-list>
</ng-container>
<ng-template #noVoices>
Expand Down

0 comments on commit 3439c40

Please sign in to comment.