From: Joas Schilling Date: Fri, 9 Jun 2017 16:05:23 +0000 (+0200) Subject: Only set the active item when there is one (not the case for quota) X-Git-Tag: v12.0.1RC1~86^2~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=901eca84b026a9f13c2011992679c801534f8bad;p=nextcloud-server.git Only set the active item when there is one (not the case for quota) Signed-off-by: Joas Schilling --- diff --git a/apps/files/js/navigation.js b/apps/files/js/navigation.js index 83cd556c89a..d213d0467b6 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(); } };