fix TypeError if field.values is null causing some nextmatch features like search not to render

This commit is contained in:
ralf 2023-07-25 16:39:56 +02:00
parent fe57e18438
commit a61445c0d0

View File

@ -4194,7 +4194,7 @@ export class et2_nextmatch_customfields extends et2_customfields_list implements
id: cf_id, id: cf_id,
emptyLabel: field.label emptyLabel: field.label
}; };
if(field.values["@"]) if(field.values && field.values["@"])
{ {
attrs.searchUrl = field.values["@"]; attrs.searchUrl = field.values["@"];
} }