Merge pull request #464 from prymitive/fix-alert-count

fix(ui): use current number of alerts in the count label
This commit is contained in:
Łukasz Mierzwa
2019-02-23 12:14:05 +00:00
committed by GitHub

View File

@@ -197,7 +197,10 @@ const AlertGroup = observer(
tooltip="Show fewer alerts in this group"
/>
<small className="text-muted mx-2">
{this.renderConfig.alertsToRender}
{Math.min(
this.renderConfig.alertsToRender,
group.alerts.length
)}
{" of "}
{group.alerts.length}
</small>