mirror of
https://github.com/nextcloud/server.git
synced 2026-03-27 04:43:20 -04:00
check optional parameter before using it, fixes #16147
This commit is contained in:
parent
9f2f282191
commit
f2d23d7f02
1 changed files with 2 additions and 2 deletions
|
|
@ -228,10 +228,10 @@ OCA = OCA || {};
|
|||
$selectedGroups, $(this.tabID).find('.ldapManyGroupsSearch')
|
||||
));
|
||||
} else {
|
||||
if(only.toLowerCase() === 'available') {
|
||||
if(_.isUndefined(only) || only.toLowerCase() === 'available') {
|
||||
this.filterOnType[0].updateOptions();
|
||||
}
|
||||
if(only.toLowerCase() === 'selected') {
|
||||
if(_.isUndefined(only) || only.toLowerCase() === 'selected') {
|
||||
this.filterOnType[1].updateOptions();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue