From 38a0275d3b931ef0f5069572ed7fa7d333a32d3d Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Wed, 13 May 2020 17:22:29 -0700 Subject: [PATCH] [7.7] Guard against disabled Dev Tools in legacy kibana/public/dev_tools. (#66276) (#66494) --- src/legacy/core_plugins/kibana/public/dev_tools/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/legacy/core_plugins/kibana/public/dev_tools/index.ts b/src/legacy/core_plugins/kibana/public/dev_tools/index.ts index 6515674c6b52a1..86428ad8c6dc10 100644 --- a/src/legacy/core_plugins/kibana/public/dev_tools/index.ts +++ b/src/legacy/core_plugins/kibana/public/dev_tools/index.ts @@ -22,7 +22,7 @@ import 'uiExports/devTools'; import { npStart } from 'ui/new_platform'; -if (npStart.plugins.devTools.getSortedDevTools().length === 0) { +if (!npStart.plugins.devTools || npStart.plugins.devTools.getSortedDevTools().length === 0) { npStart.core.chrome.navLinks.update('kibana:dev_tools', { hidden: true, });