(id: number)
| 431 | } |
| 432 | |
| 433 | findTreeById(id: number) { |
| 434 | for (let idxTree = 0; idxTree < this.trees.length; idxTree++) { |
| 435 | const tree = this.trees[idxTree]; |
| 436 | |
| 437 | if (tree.id === id) { |
| 438 | return tree; |
| 439 | } |
| 440 | } |
| 441 | |
| 442 | return false; |
| 443 | } |
| 444 | |
| 445 | findOrCreateSession(id: number) { |
| 446 | let session = this.findSessionById(id); |