diff --git a/x-pack/plugins/monitoring/public/directives/main/index.js b/x-pack/plugins/monitoring/public/directives/main/index.js index a2132029cd0d..e68cd8c7fad4 100644 --- a/x-pack/plugins/monitoring/public/directives/main/index.js +++ b/x-pack/plugins/monitoring/public/directives/main/index.js @@ -83,7 +83,7 @@ uiModule.directive('monitoringMain', (breadcrumbs, license, kbnUrl, $injector) = if (!scope.cluster) { const $route = $injector.get('$route'); const globalState = $injector.get('globalState'); - scope.cluster = $route.current.locals.clusters.find(cluster => cluster.cluster_uuid === globalState.cluster_uuid); + scope.cluster = ($route.current.locals.clusters || []).find(cluster => cluster.cluster_uuid === globalState.cluster_uuid); } function getSetupObj() {