avoid duplicate title in split tab's title

This commit is contained in:
Eugene Pankov 2022-02-09 20:21:20 +01:00
parent b3a07e5f99
commit c736a84835
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -635,7 +635,7 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
}
private updateTitle (): void {
this.setTitle(this.getAllTabs().map(x => x.title).join(' | '))
this.setTitle([...new Set(this.getAllTabs().map(x => x.title))].join(' | '))
}
private attachTabView (tab: BaseTabComponent) {