Skip to content

Commit

Permalink
better core access
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Jan 21, 2020
1 parent cab3e6c commit fed6d58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class SampleDataRegistry {
makeSampleDataUsageCollector(usageCollections, this.initContext);
}
const usageTracker = usage(
core.getStartServices().then(start => start[0].savedObjects),
core.getStartServices().then(([coreStart]) => coreStart.savedObjects),
this.initContext.logger.get('sample_data', 'telemetry')
);
const router = core.http.createRouter();
Expand Down

0 comments on commit fed6d58

Please sign in to comment.