Skip to content

Commit

Permalink
fix(@angular/cli): show analytics prompt when no global configuration…
Browse files Browse the repository at this point in the history
… file

Fixes #14486
  • Loading branch information
clydin authored and mgechev committed May 22, 2019
1 parent 8f0b3eb commit 4130191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular/cli/models/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export function hasGlobalAnalyticsConfiguration(): boolean {
&& globalWorkspace.getCli()
&& globalWorkspace.getCli()['analytics'];

if (analyticsConfig !== undefined) {
if (analyticsConfig !== null && analyticsConfig !== undefined) {
return true;
}
} catch {}
Expand Down

0 comments on commit 4130191

Please sign in to comment.