Commit f2d23d7f authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

check optional parameter before using it, fixes #16147

parent 9f2f2821
......@@ -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();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment