From b0171a758452176317e30e5431ac2833d06bffc3 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 9 Jun 2017 18:05:23 +0200 Subject: [PATCH] Only set the active item when there is one (not the case for quota) Signed-off-by: Joas Schilling --- apps/files/js/navigation.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/files/js/navigation.js b/apps/files/js/navigation.js index 83cd556c89..d213d0467b 100644 --- a/apps/files/js/navigation.js +++ b/apps/files/js/navigation.js @@ -123,7 +123,9 @@ _onClickItem: function(ev) { var $target = $(ev.target); var itemId = $target.closest('li').attr('data-id'); - this.setActiveItem(itemId); + if (!_.isUndefined(itemId)) { + this.setActiveItem(itemId); + } ev.preventDefault(); } };