From e5738d608c8bb59902bfbdc10ee2cc3a24cecc60 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 30 Sep 2019 10:58:03 +0100 Subject: [PATCH] Add fallback for Object.values call in IE11 --- .../@node-red/editor-client/src/js/nodes.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/nodes.js b/packages/node_modules/@node-red/editor-client/src/js/nodes.js index 17ba67ce7..d956684ce 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/nodes.js +++ b/packages/node_modules/@node-red/editor-client/src/js/nodes.js @@ -1296,8 +1296,13 @@ RED.nodes = (function() { function filterNodes(filter) { var result = []; var searchSet = nodes; - if (filter.hasOwnProperty("z") && Object.hasOwnProperty("values") && nodeTabMap.hasOwnProperty(filter.z) ) { - searchSet = Object.values(nodeTabMap[filter.z]); + var doZFilter = false; + if (filter.hasOwnProperty("z")) { + if (Object.hasOwnProperty("values") && nodeTabMap.hasOwnProperty(filter.z) ) { + searchSet = Object.values(nodeTabMap[filter.z]); + } else { + doZFilter = true; + } } for (var n=0;n