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:
parent
b1ddc57e08
commit
901eca84b0
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue