From a61445c0d0eed35794306ae108ee56a4367ae0e8 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 25 Jul 2023 16:39:56 +0200 Subject: [PATCH] fix TypeError if field.values is null causing some nextmatch features like search not to render --- api/js/etemplate/et2_extension_nextmatch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_extension_nextmatch.ts b/api/js/etemplate/et2_extension_nextmatch.ts index bb041f6510..31fd133456 100644 --- a/api/js/etemplate/et2_extension_nextmatch.ts +++ b/api/js/etemplate/et2_extension_nextmatch.ts @@ -4194,7 +4194,7 @@ export class et2_nextmatch_customfields extends et2_customfields_list implements id: cf_id, emptyLabel: field.label }; - if(field.values["@"]) + if(field.values && field.values["@"]) { attrs.searchUrl = field.values["@"]; }