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 committed by hadi
parent 36c8d53eb1
commit 32c0aa8555

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["@"];
} }