Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kathy-t committed Jan 16, 2025
1 parent fcd779f commit b393e1e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/app/search/search-entry-table.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@
>{{ entry?.source | entryToDisplayName: true }}</a
>
</div>
<div class="star-color weight-bold" data-cy="starredUsers">
<mat-icon class="mat-icon-sm" *ngIf="entry?.source.starredUsers?.length > 0">star_rate</mat-icon>
<span>{{
!entry?.source.starredUsers || entry?.source.starredUsers.length === 0 ? '' : entry?.source.starredUsers.length
}}</span>
<div *ngIf="entry?.source.starredUsers?.length" class="star-color weight-bold" data-cy="starredUsers">
<mat-icon class="mat-icon-sm">star_rate</mat-icon>
<span>{{ entry?.source.starredUsers.length }}</span>
</div>
</div>
<div>
Expand Down

0 comments on commit b393e1e

Please sign in to comment.