Skip to content

Commit

Permalink
Guard against disabled Dev Tools in legacy kibana/public/dev_tools.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed May 12, 2020
1 parent 46856c8 commit 367e005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/legacy/core_plugins/kibana/public/dev_tools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 367e005

Please sign in to comment.