diff --git a/public/js/icinga/behavior/navigation.js b/public/js/icinga/behavior/navigation.js index 1fc462aab..bd711799c 100644 --- a/public/js/icinga/behavior/navigation.js +++ b/public/js/icinga/behavior/navigation.js @@ -178,7 +178,9 @@ * Remove all active elements */ Navigation.prototype.clear = function() { - this.$menu.find('.active').removeClass('active'); + if (this.$menu) { + this.$menu.find('.active').removeClass('active'); + } }; /**