From 8f8c437712f846078acbc3c54f4620f8bea9ddf2 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 14 Apr 2020 15:03:32 -0600 Subject: [PATCH] Try to avoid error from missing nodes I suspect this is from either TypeScript conversion or nm node optimization, but can't duplicate it regularly --- .../etemplate/et2_extension_nextmatch_rowProvider.js | 8 +++++++- .../etemplate/et2_extension_nextmatch_rowProvider.ts | 10 +++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/et2_extension_nextmatch_rowProvider.js b/api/js/etemplate/et2_extension_nextmatch_rowProvider.js index 20b8773fe4..dfea5da3a5 100644 --- a/api/js/etemplate/et2_extension_nextmatch_rowProvider.js +++ b/api/js/etemplate/et2_extension_nextmatch_rowProvider.js @@ -154,7 +154,13 @@ var et2_nextmatch_rowProvider = /** @class */ (function () { for (var j = 0; j < nodes.length; j++) { // Use the previously compiled node function to get the node // from the entry - nodes[j] = entry.nodeFuncs[j](row); + try { + nodes[j] = entry.nodeFuncs[j](row); + } + catch (e) { + debugger; + continue; + } } // Set the array managers first entry.widget._mgrs = mgrs; diff --git a/api/js/etemplate/et2_extension_nextmatch_rowProvider.ts b/api/js/etemplate/et2_extension_nextmatch_rowProvider.ts index b25449d5a2..01999931d3 100644 --- a/api/js/etemplate/et2_extension_nextmatch_rowProvider.ts +++ b/api/js/etemplate/et2_extension_nextmatch_rowProvider.ts @@ -172,7 +172,15 @@ export class et2_nextmatch_rowProvider { // Use the previously compiled node function to get the node // from the entry - nodes[j] = entry.nodeFuncs[j](row); + try + { + nodes[j] = entry.nodeFuncs[j](row); + } + catch (e) + { + debugger; + continue; + } } // Set the array managers first