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

This commit is contained in:
Jen Huang 2018-12-12 14:12:39 -08:00 committed by GitHub
parent 8a4f074f64
commit bef0e827a2
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) {