Skip to content

Commit

Permalink
check if uiSetting is declared before checking for value
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Jun 16, 2021
1 parent d74614a commit 217e304
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class IndexPatternCreationManager {
const configs: IndexPatternCreationConfig[] = [];
configs.push(new IndexPatternCreationConfig({ httpClient }));

if (uiSettings.get(CONFIG_ROLLUPS, false)) {
if (uiSettings.isDeclared(CONFIG_ROLLUPS) && uiSettings.get(CONFIG_ROLLUPS)) {
configs.push(new RollupIndexPatternCreationConfig({ httpClient }));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class IndexPatternListManager {
const configs: IndexPatternListConfig[] = [];
configs.push(new IndexPatternListConfig());

if (uiSettings.get(CONFIG_ROLLUPS, false)) {
if (uiSettings.isDeclared(CONFIG_ROLLUPS) && uiSettings.get(CONFIG_ROLLUPS)) {
configs.push(new RollupIndexPatternListConfig());
}

Expand Down

0 comments on commit 217e304

Please sign in to comment.