Ensure debug tools show for 'complete msg object'

This commit is contained in:
Nick O'Leary
2018-02-13 23:42:22 +00:00
parent 6191a49ed3
commit a25dad6c2e

View File

@@ -476,7 +476,7 @@ RED.utils = (function() {
for (i=0;i<keys.length;i++) {
var row = $('<div class="debug-message-object-entry collapsed"></div>').appendTo(element);
var newPath = path;
if (newPath) {
if (newPath !== undefined) {
if (/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(keys[i])) {
newPath += (newPath.length > 0?".":"")+keys[i];
} else {