diff --git a/src/core_plugins/interpreter/init.js b/src/core_plugins/interpreter/init.js index c48c60ec4bd07..74d07d60b480a 100644 --- a/src/core_plugins/interpreter/init.js +++ b/src/core_plugins/interpreter/init.js @@ -25,7 +25,11 @@ export default async function (server /*options*/) { server.injectUiAppVars('canvas', () => { const config = server.config(); const basePath = config.get('server.basePath'); - const reportingBrowserType = config.get('xpack.reporting.capture.browser.type'); + const reportingBrowserType = (() => { + const configKey = 'xpack.reporting.capture.browser.type'; + if (!config.has(configKey)) return null; + return config.get(configKey); + })(); return { kbnIndex: config.get('kibana.index'), diff --git a/x-pack/plugins/canvas/init.js b/x-pack/plugins/canvas/init.js index 4ce65ff683024..3e1f40697ed8c 100644 --- a/x-pack/plugins/canvas/init.js +++ b/x-pack/plugins/canvas/init.js @@ -15,7 +15,11 @@ export default async function(server /*options*/) { server.injectUiAppVars('canvas', () => { const config = server.config(); const basePath = config.get('server.basePath'); - const reportingBrowserType = config.get('xpack.reporting.capture.browser.type'); + const reportingBrowserType = (() => { + const configKey = 'xpack.reporting.capture.browser.type'; + if (!config.has(configKey)) return null; + return config.get(configKey); + })(); return { kbnIndex: config.get('kibana.index'), diff --git a/x-pack/plugins/canvas/public/components/workpad_export/index.js b/x-pack/plugins/canvas/public/components/workpad_export/index.js index 3e1a1dce70558..eaa4691b71839 100644 --- a/x-pack/plugins/canvas/public/components/workpad_export/index.js +++ b/x-pack/plugins/canvas/public/components/workpad_export/index.js @@ -6,9 +6,9 @@ /* eslint import/no-unresolved: 1 */ // TODO: remove eslint rule when updating to use the linked kibana resolve package -import { jobCompletionNotifications } from 'plugins/reporting/lib/job_completion_notifications'; import { connect } from 'react-redux'; import { compose, withProps } from 'recompose'; +import { jobCompletionNotifications } from '../../../../reporting/public/lib/job_completion_notifications'; import { getWorkpad, getPages } from '../../state/selectors/workpad'; import { getReportingBrowserType } from '../../state/selectors/app'; import { notify } from '../../lib/notify';