diff --git a/src/js/nodeslistman.js b/src/js/nodeslistman.js index caf41cd..80940ae 100644 --- a/src/js/nodeslistman.js +++ b/src/js/nodeslistman.js @@ -322,10 +322,12 @@ var onListNodes = function (obj) { "render": function (data, type, row, meta) { const firstBg = data.indexOf(">"); const secondSl = data.substring(1).indexOf("<"); - const aTag = data.substring(0, firstBg + 1) - const aTagTail = data.substring(secondSl + 1) - const name = data.substring(firstBg + 1, secondSl + 1) - let html = name.length > 15 ? + const aTag = firstBg === -1 ? "" : data.substring(0, firstBg + 1); + const aTagTail = secondSl === -1 ? "" : data.substring(secondSl + 1); + const name = firstBg === -1 || secondSl === -1 ? + data : + data.substring(firstBg + 1, secondSl + 1); + const html = name.length > 15 ? `${name.substring(0, 15)} ...` : name; return aTag + html + aTagTail;