MCPcopy Create free account
hub / github.com/DTStack/molecule / getGroupIndexById

Method getGroupIndexById

src/services/workbench/editorService.ts:570–573  ·  view source on GitHub ↗
(id: UniqueId)

Source from the content-addressed store, hash-verified

568 }
569
570 public getGroupIndexById(id: UniqueId): number {
571 const { groups } = this.state;
572 return groups!.findIndex(searchById(id));
573 }
574
575 public getGroupIdByTab(tabId: UniqueId) {
576 const { groups = [] } = this.state;

Callers 9

closeTabMethod · 0.95
closeOtherMethod · 0.95
closeToRightMethod · 0.95
closeToLeftMethod · 0.95
setActiveMethod · 0.95
updateGroupMethod · 0.95
openMethod · 0.95
closeAllMethod · 0.95

Calls 1

searchByIdFunction · 0.90

Tested by

no test coverage detected