(tabId: UniqueId)
| 573 | } |
| 574 | |
| 575 | public getGroupIdByTab(tabId: UniqueId) { |
| 576 | const { groups = [] } = this.state; |
| 577 | const isOpened = this.isOpened(tabId, groups); |
| 578 | if (isOpened) { |
| 579 | const targetGroup = groups.find((group) => |
| 580 | this.getTabById(tabId, group.id!) |
| 581 | )!; |
| 582 | return targetGroup.id!; |
| 583 | } else { |
| 584 | return null; |
| 585 | } |
| 586 | } |
| 587 | |
| 588 | public setActive(groupId: UniqueId, tabId: UniqueId) { |
| 589 | const { groups = [] } = this.state; |
nothing calls this directly
no test coverage detected