From b5758a2268d7c198cdf45caa717adb7aea942521 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 5 Sep 2023 08:35:58 -0600 Subject: [PATCH] Fix addressbook list type filter gave error when changing --- 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 e42af1184f..00a74b682e 100644 --- a/api/js/etemplate/et2_extension_nextmatch.ts +++ b/api/js/etemplate/et2_extension_nextmatch.ts @@ -3936,7 +3936,7 @@ export class et2_nextmatch_header_bar extends et2_DOMWidget implements et2_INext { // Call previously set change function const params = [_node, header.nextmatch, _widget]; - if(widget_change.toString().startsWith("function (ev, widget) {\n // Dump the executed code for debugging")) + if(widget_change?.toString().startsWith("function (ev, widget) {\n // Dump the executed code for debugging")) { // Legacy - do not pass the nextmatch, it will override widget params.splice(1, 1);