Skip to content

Commit

Permalink
fic: ignore meter items with value equal to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
AleTornesello committed Sep 26, 2024
1 parent e624bb5 commit 330c9b9
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 330c9b9

Please sign in to comment.