From 6abb239705b9ada3b3c5173451ac6a31b9a59639 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 9 Sep 2021 13:43:16 -0600 Subject: [PATCH] Avoid error if widget does not have transformAttributes method This might be an issue with not properly implemented DetachedDOM interface --- api/js/etemplate/et2_extension_nextmatch_rowProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_extension_nextmatch_rowProvider.ts b/api/js/etemplate/et2_extension_nextmatch_rowProvider.ts index f5ea0b4a25..f553c1c54d 100644 --- a/api/js/etemplate/et2_extension_nextmatch_rowProvider.ts +++ b/api/js/etemplate/et2_extension_nextmatch_rowProvider.ts @@ -193,7 +193,7 @@ export class et2_nextmatch_rowProvider } // Adjust data for that row - entry.widget.transformAttributes.call(entry.widget,data); + entry.widget.transformAttributes?.call(entry.widget, data); // Call the setDetachedAttributes function entry.widget.setDetachedAttributes(nodes, data, _data);