Silently swallow request failures so that the create button isn't blocked (#26988)

This commit is contained in:
Jen Huang 2018-12-12 11:28:10 -08:00 committed by GitHub
parent 7f4ac5d669
commit 17db63cca6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {