mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Fix error on some bad options
Would sometimes stop historylog from loading
This commit is contained in:
parent
57993741cb
commit
25f64d0064
@ -233,6 +233,10 @@ export function cleanSelectOptions(options : SelectOption[] | string[] | object)
|
||||
{
|
||||
option = {label: option};
|
||||
}
|
||||
else if(option === null)
|
||||
{
|
||||
option = {label: key + ""};
|
||||
}
|
||||
option.value = option.value??key.trim(); // link_search prefixes keys with one space
|
||||
fixed_options.push(option);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user