Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwizp committed Dec 26, 2019
1 parent 5347193 commit 3cddb03
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,18 @@ export const validateLeaderIndexPattern = indexPattern => {
if (indexPattern) {
const errors = indexPatterns.validate(indexPattern);

if (errors[indexPatterns.ILLEGAL_CHARACTERS]) {
if (errors[indexPatterns.ILLEGAL_CHARACTERS_KEY]) {
return {
message: (
<FormattedMessage
id="xpack.crossClusterReplication.autoFollowPattern.leaderIndexPatternValidation.illegalCharacters"
defaultMessage="Remove the {characterListLength, plural, one {character} other {characters}}
{characterList} from the index pattern."
values={{
characterList: <strong>{errors[indexPatterns.ILLEGAL_CHARACTERS].join(' ')}</strong>,
characterListLength: errors[indexPatterns.ILLEGAL_CHARACTERS].length,
characterList: (
<strong>{errors[indexPatterns.ILLEGAL_CHARACTERS_KEY].join(' ')}</strong>
),
characterListLength: errors[indexPatterns.ILLEGAL_CHARACTERS_KEY].length,
}}
/>
),
Expand Down

0 comments on commit 3cddb03

Please sign in to comment.