Avoid error if widget does not have transformAttributes method

This might be an issue with not properly implemented DetachedDOM interface
This commit is contained in:
nathan 2021-09-09 13:43:16 -06:00
parent 6fe2ec6c65
commit 6abb239705

View File

@ -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);