continue logic
This commit is contained in:
parent
2a960da31c
commit
5609fecbce
|
@ -14,7 +14,9 @@ export class ServiceUtils {
|
||||||
const partName = parts[partIndex];
|
const partName = parts[partIndex];
|
||||||
|
|
||||||
for (let i = 0; i < nodeTree.length; i++) {
|
for (let i = 0; i < nodeTree.length; i++) {
|
||||||
if (nodeTree[i].node.name === parts[partIndex]) {
|
if (nodeTree[i].node.name !== parts[partIndex]) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (end && nodeTree[i].node.id !== obj.id) {
|
if (end && nodeTree[i].node.id !== obj.id) {
|
||||||
// Another node with the same name.
|
// Another node with the same name.
|
||||||
nodeTree.push(new TreeNode(obj, partName, parent));
|
nodeTree.push(new TreeNode(obj, partName, parent));
|
||||||
|
@ -24,7 +26,6 @@ export class ServiceUtils {
|
||||||
obj, nodeTree[i].node, delimiter);
|
obj, nodeTree[i].node, delimiter);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (nodeTree.filter((n) => n.node.name === partName).length === 0) {
|
if (nodeTree.filter((n) => n.node.name === partName).length === 0) {
|
||||||
if (end) {
|
if (end) {
|
||||||
|
|
Loading…
Reference in New Issue