Skip to content

Commit

Permalink
Merge pull request #17290 from opf/fix/59556-feature-specs-adjustment
Browse files Browse the repository at this point in the history
Fix failing feature specs for wp filters
  • Loading branch information
brunopagno authored Nov 27, 2024
2 parents a481275 + ab4501d commit b2621e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
</div>

<ng-template let-item let-search="search" #defaultOption [ngSwitch]="true">
<ng-container *ngSwitchCase="!resource && item.depth !== null">
<ng-container *ngSwitchCase="!resource && !!item.depth">
<span [ngOptionHighlight]="search"
[textContent]="item.name"
[ngStyle]="{'padding-left.px': item.depth * 16}"
Expand Down Expand Up @@ -203,7 +203,7 @@
</ng-container>

<ng-container
*ngSwitchCase="resource ==='subproject' || resource ==='version' || resource ==='status' || resource ==='default' || (!resource && item.depth === null)">
*ngSwitchCase="resource ==='subproject' || resource ==='version' || resource ==='status' || resource ==='default' || (!resource && !item.depth)">
<span [ngOptionHighlight]="search">{{ item.name }}</span>
<span
class="op-autocompleter__option-principal-email"
Expand Down

0 comments on commit b2621e2

Please sign in to comment.