[Metrics UI] Fixing chart label for ungrouped alerts (#66444)

This commit is contained in:
Chris Cowan 2020-05-13 12:38:18 -07:00 committed by GitHub
parent 9ab0ad16ef
commit 2b47605255
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -265,8 +265,8 @@ export const ExpressionChart: React.FC<Props> = ({
<EuiText size="xs" color="subdued">
<FormattedMessage
id="xpack.infra.metrics.alerts.dataTimeRangeLabel"
defaultMessage="Last 20 {timeLabel}"
values={{ timeLabel }}
defaultMessage="Last {lookback} {timeLabel}"
values={{ timeLabel, lookback: timeSize * 20 }}
/>
</EuiText>
)}