Skip to content

Commit

Permalink
update check configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Tao liu <liutaoaz@amazon.com>
  • Loading branch information
Flyingliuhub committed Apr 7, 2022
1 parent 86196c8 commit 96b3fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/data/server/search/collectors/usage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function usageProvider(
.create<ConfigSchema>()
.pipe(first())
.toPromise();
if (config.search.usageTelemetry.enabled) {
if (config?.search?.usageTelemetry?.enabled) {
const repository = await core
.getStartServices()
.then(([coreStart]) => coreStart.savedObjects.createInternalRepository());
Expand Down

0 comments on commit 96b3fd4

Please sign in to comment.