refactor: clean code
This commit is contained in:
@ -64,8 +64,10 @@ export class TabsComponent implements AfterViewInit {
|
||||
if (selected !== null)
|
||||
index = selected.type;
|
||||
|
||||
this.chooseTabs(index).then();
|
||||
this.tabs.selectedIndex = index;
|
||||
if (this.tabs.selectedIndex === null || this.tabs.selectedIndex === 0)
|
||||
this.chooseTabs(0).then();
|
||||
else
|
||||
this.tabs.selectedIndex = index;
|
||||
}
|
||||
|
||||
protected groupSelected(id: number) {
|
||||
|
Reference in New Issue
Block a user