Clean undefined messages for tree view

This commit is contained in:
Jose Gonzalez 2022-01-07 10:39:03 +01:00
parent 2b560d8806
commit f072585d5a
2 changed files with 6 additions and 1 deletions

View File

@ -976,6 +976,11 @@ var TreeController = {
"</span>"
);
// Avoiding 'undefined' text.
if (typeof element.value === "undefined") {
element.value = "";
}
// Value.
$content.append(
'<span class="module-value">' + element.value + "</span>"

View File

@ -330,7 +330,7 @@ enterprise_hook('close_meta_frame');
<script type="text/javascript">
var treeController = TreeController.getController();
processTreeSearch();
$("form#tree_search").submit(function(e) {