mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
fixed ipam supernet tree view when there is no data show
This commit is contained in:
parent
b70ca89af2
commit
aa24bf545c
@ -1444,7 +1444,12 @@ var TreeController = {
|
|||||||
if (typeof data.auth_hash !== "undefined") {
|
if (typeof data.auth_hash !== "undefined") {
|
||||||
this.auth_hash = data.auth_hash;
|
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.foundMessage = "";
|
||||||
}
|
}
|
||||||
this.load();
|
this.load();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user