mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Avoid error if label is missing
This commit is contained in:
parent
bbb6444dce
commit
215dc21ec5
@ -190,7 +190,7 @@ export function find_select_options(widget, attr_options?, options : SelectOptio
|
||||
{
|
||||
let option = {value: key, label: content_options[key]}
|
||||
// This could be an option group - not sure we have any
|
||||
if(typeof option.label !== "string")
|
||||
if(typeof option.label !== "string" && option.label)
|
||||
{
|
||||
// @ts-ignore Yes, option.label.label is not supposed to exist but that's what we're checking
|
||||
if(typeof option.label.label !== "undefined")
|
||||
|
Loading…
Reference in New Issue
Block a user