mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
#12168 filtered only for services
This commit is contained in:
parent
581d78fc33
commit
13ba9aff39
@ -1565,6 +1565,7 @@ var TreeController = {
|
|||||||
const father = [];
|
const father = [];
|
||||||
const newTree = [];
|
const newTree = [];
|
||||||
rawTree.map((raw, index) => {
|
rawTree.map((raw, index) => {
|
||||||
|
if (raw.type === "services") {
|
||||||
if (raw.servicesChildren.length !== 0) {
|
if (raw.servicesChildren.length !== 0) {
|
||||||
// search at parent level
|
// search at parent level
|
||||||
let findedPadre = raw.description.indexOf(searched);
|
let findedPadre = raw.description.indexOf(searched);
|
||||||
@ -1590,6 +1591,7 @@ var TreeController = {
|
|||||||
delete rawTree[index];
|
delete rawTree[index];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (ancestors.length >= 1) {
|
if (ancestors.length >= 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user