Only set the active item when there is one (not the case for quota)

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-06-09 18:05:23 +02:00 committed by Morris Jobke
parent b1ddc57e08
commit 901eca84b0
1 changed files with 3 additions and 1 deletions

View File

@ -123,7 +123,9 @@
_onClickItem: function(ev) {
var $target = $(ev.target);
var itemId = $target.closest('li').attr('data-id');
if (!_.isUndefined(itemId)) {
this.setActiveItem(itemId);
}
ev.preventDefault();
}
};