Skip to content

Commit

Permalink
Merge pull request #16440 from AleTornesello/master
Browse files Browse the repository at this point in the history
fix(#16439): ignore meter items with value equal to zero
  • Loading branch information
cetincakiroglu authored Sep 26, 2024
2 parents e624bb5 + 330c9b9 commit fb4c23f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/metergroup/metergroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class MeterGroupLabel {
<ng-container *ngFor="let meterItem of value; let index = index; trackBy: trackByFn">
<ng-container *ngTemplateOutlet="meterTemplate; context: { $implicit: meterItem, index: index, orientation: this.orientation, class: 'p-metergroup-meter', size: percentValue(meterItem.value), totalPercent: totalPercent() }">
</ng-container>
<ng-container *ngIf="!meterTemplate">
<ng-container *ngIf="!meterTemplate && meterItem.value > 0">
<span class="p-metergroup-meter" [ngStyle]="meterStyle(meterItem)"></span>
</ng-container>
</ng-container>
Expand Down

0 comments on commit fb4c23f

Please sign in to comment.