Node deleted disapear in tree view

This commit is contained in:
marcos.alconada 2019-06-06 18:47:10 +02:00
parent 034a910000
commit 73466b9096
1 changed files with 7 additions and 3 deletions

View File

@ -624,7 +624,10 @@ var TreeController = {
'images/tree_service_map.png" /> '
);
if (typeof element.serviceDetail != "undefined") {
if (
typeof element.serviceDetail != "undefined" &&
element.name != null
) {
$serviceDetailImage
.click(function(e) {
e.preventDefault();
@ -634,10 +637,11 @@ var TreeController = {
.css("cursor", "pointer");
$content.append($serviceDetailImage);
$content.append(" " + element.name);
} else {
$content.remove($node);
}
$content.append(" " + element.name);
break;
case "modules":
if (