Skip to content

Commit

Permalink
update message for case of only repeated pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 committed Jan 11, 2023
1 parent afbdfa5 commit fe1e5b2
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,20 @@ export const SpikeAnalysisGroupsTable: FC<SpikeAnalysisTableProps> = ({
<br />
</>
) : null}
{repeatedValues.length > 0 ? (
{repeatedValues.length > 0 && valuesBadges.length ? (
<FormattedMessage
id="xpack.aiops.explainLogRateSpikes.spikeAnalysisTableGroups.moreRepeatedLabel"
defaultMessage="+{count, plural, one {# more field/value pair} other {# more field/value pairs}} also appearing in other groups"
values={{ count: repeatedValues.length }}
/>
) : null}
{repeatedValues.length > 0 && !valuesBadges.length ? (
<FormattedMessage
id="xpack.aiops.explainLogRateSpikes.spikeAnalysisTableGroups.onlyMoreRepeatedLabel"
defaultMessage="{count, plural, one {# field/value pair} other {# more field/value pairs}} also appearing in other groups"
values={{ count: repeatedValues.length }}
/>
) : null}
</EuiBadge>
<EuiSpacer size="xs" />
</>
Expand Down

0 comments on commit fe1e5b2

Please sign in to comment.