Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
poffdeluxe committed Jan 24, 2020
1 parent 7f97c7f commit 25b4646
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x-pack/legacy/plugins/canvas/public/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ const shimSetupPlugins = {
// When the frontend Canvas plugin is moved to NP, we can declare reporting as an optional dependency
// and enable exports based on existence of the plugin.
// For now, use an injected config to mimic this behavior in the meantime.
reporting: npSetup.core.injectedMetadata.getInjectedVar('reportingBrowserType') ? {} : undefined,
reporting:
npSetup.core && npSetup.core.injectedMetadata.getInjectedVar('reportingBrowserType')
? {}
: undefined,
};

const shimStartPlugins: CanvasStartDeps = {
Expand Down

0 comments on commit 25b4646

Please sign in to comment.