(items, id)
| 615 | } |
| 616 | |
| 617 | _findLayerCatalog(items, id) { |
| 618 | for (const item of items) { |
| 619 | if (item.id === id) { |
| 620 | return item; |
| 621 | } |
| 622 | if (item.children) { |
| 623 | const found = this._findLayerCatalog(item.children, id); |
| 624 | if (found) { |
| 625 | return found; |
| 626 | } |
| 627 | } |
| 628 | } |
| 629 | return null; |
| 630 | } |
| 631 | |
| 632 | _deleteLayerCatalog(catalogs, id) { |
| 633 | for (let index = 0; index < catalogs.length; index++) { |
no outgoing calls
no test coverage detected