Skip to content

Commit

Permalink
[7.x] [Telemetry] Fix license page crashing on telemetry.enabl… (elas…
Browse files Browse the repository at this point in the history
…tic#54243)

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
Bamieh and elasticmachine authored Jan 8, 2020
1 parent 3f854d7 commit 8e26f8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if (licenseManagementUiEnabled) {
};

const initializeTelemetry = ($injector: any) => {
const telemetryEnabled = $injector.get('telemetryEnabled');
const telemetryEnabled = npStart.core.injectedMetadata.getInjectedVar('telemetryEnabled');
const Private = $injector.get('Private');
const telemetryOptInProvider = Private(TelemetryOptInProvider);
setTelemetryOptInService(telemetryOptInProvider);
Expand Down

0 comments on commit 8e26f8c

Please sign in to comment.