mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
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
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue