mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Handle empty array/objects in debug view
This commit is contained in:
parent
6278dfa77e
commit
1e9ce550db
@ -306,9 +306,9 @@ RED.utils = (function() {
|
|||||||
$('<i class="fa fa-caret-right debug-message-object-handle"></i> ').prependTo(header);
|
$('<i class="fa fa-caret-right debug-message-object-handle"></i> ').prependTo(header);
|
||||||
var arrayRows = $('<div class="debug-message-array-rows"></div>').appendTo(element);
|
var arrayRows = $('<div class="debug-message-array-rows"></div>').appendTo(element);
|
||||||
element.addClass('debug-message-buffer-raw');
|
element.addClass('debug-message-buffer-raw');
|
||||||
|
}
|
||||||
if (key) {
|
if (key) {
|
||||||
headerHead = $('<span class="debug-message-type-meta f"></span>').html(typeHint||(type+'['+originalLength+']')).appendTo(entryObj);
|
headerHead = $('<span class="debug-message-type-meta"></span>').html(typeHint||(type+'['+originalLength+']')).appendTo(entryObj);
|
||||||
} else {
|
} else {
|
||||||
headerHead = $('<span class="debug-message-object-header"></span>').appendTo(entryObj);
|
headerHead = $('<span class="debug-message-object-header"></span>').appendTo(entryObj);
|
||||||
$('<span>[ </span>').appendTo(headerHead);
|
$('<span>[ </span>').appendTo(headerHead);
|
||||||
@ -327,6 +327,7 @@ RED.utils = (function() {
|
|||||||
}
|
}
|
||||||
$('<span> ]</span>').appendTo(headerHead);
|
$('<span> ]</span>').appendTo(headerHead);
|
||||||
}
|
}
|
||||||
|
if (originalLength > 0) {
|
||||||
|
|
||||||
makeExpandable(header,function() {
|
makeExpandable(header,function() {
|
||||||
if (!key) {
|
if (!key) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user