Merge branch 'ent-8132-Bug-in-supernet-tree-view-IPAM' into 'develop'
fixed ipam supernet tree view when there is no data show See merge request artica/pandorafms!4499
This commit is contained in:
commit
3436d80d09
|
@ -1444,7 +1444,12 @@ var TreeController = {
|
|||
if (typeof data.auth_hash !== "undefined") {
|
||||
this.auth_hash = data.auth_hash;
|
||||
}
|
||||
if (data.tree[0]["rootType"] == "services") {
|
||||
if (
|
||||
typeof data.tree !== "undefined" &&
|
||||
Array.isArray(data.tree) &&
|
||||
data.tree.length > 0 &&
|
||||
data.tree[0]["rootType"] == "services"
|
||||
) {
|
||||
this.foundMessage = "";
|
||||
}
|
||||
this.load();
|
||||
|
|
Loading…
Reference in New Issue