issue-5-product-gamesystems #10
@ -21,6 +21,8 @@ export class EditorComponent {
|
||||
if(!this.gameModelComponents.includes(gameModelComponent)) {
|
||||
this.gameModelComponents.push(gameModelComponent);
|
||||
this.activeTab = this.gameModelComponents.length;
|
||||
} else {
|
||||
this.activeTab = this.gameModelComponents.findIndex(component => component.componentName === gameModelComponent.componentName);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user