Skip to content

Commit

Permalink
Rollup index pattern error: must match one rollup index (#56732)
Browse files Browse the repository at this point in the history
Closes: #32765

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
alexwizp and elasticmachine authored Feb 5, 2020
1 parent 2814bf6 commit 5884c5c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export class RollupIndexPatternCreationConfig extends IndexPatternCreationConfig
this.rollupJobs = [];
this.rollupIndicesCapabilities = {};
this.rollupIndices = [];
this.settingUp = this.setRollupIndices();
}

async setRollupIndices() {
Expand All @@ -77,7 +76,7 @@ export class RollupIndexPatternCreationConfig extends IndexPatternCreationConfig
}

async getIndexPatternCreationOption(urlHandler) {
await this.settingUp;
await this.setRollupIndices();
return this.rollupIndices && this.rollupIndices.length
? {
text: rollupIndexPatternButtonText,
Expand Down

0 comments on commit 5884c5c

Please sign in to comment.