Skip to content

Commit

Permalink
Silently swallow request failures so that the create button isn't blo…
Browse files Browse the repository at this point in the history
…cked (#26988) (#27062)
  • Loading branch information
jen-huang committed Dec 12, 2018
1 parent 8a4f074 commit bef0e82
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ export class RollupIndexPatternCreationConfig extends IndexPatternCreationConfig
}

async setRollupIndices() {
this.rollupIndicesCapabilities = await getRollupIndices();
this.rollupIndices = Object.keys(this.rollupIndicesCapabilities);
try {
this.rollupIndicesCapabilities = await getRollupIndices();
this.rollupIndices = Object.keys(this.rollupIndicesCapabilities);
} catch (e) {
// Silently swallow failure responses such as expired trials
}
}

async getIndexPatternCreationOption(urlHandler) {
Expand Down

0 comments on commit bef0e82

Please sign in to comment.