seimin 1 місяць тому
батько
коміт
b66276b8d0

+ 1 - 1
src/app/views/new-statistics/components/custom-tabs/custom-tabs.component.ts

@@ -23,7 +23,7 @@ export class CustomTabsComponent implements OnInit {
23 23
 
24 24
   closeTab(path: string, event: MouseEvent): void {
25 25
     event.stopPropagation();
26
-    let newPath = this.tabService.closeTab(path);
26
+    let newPath:any = this.tabService.closeTab(path);
27 27
     this.selectTabEmit.emit(newPath.split('/').reverse()[0])
28 28
   }
29 29
 

+ 1 - 1
src/app/views/new-statistics/services/tab.service.ts

@@ -57,7 +57,7 @@ export class TabService {
57 57
     return [pathWithoutParams, { queryParams }];
58 58
   }
59 59
 
60
-  closeTab(path: string): void {
60
+  closeTab(path: string): any {
61 61
     const index = this.tabs.findIndex(t => t.path === path);
62 62
     if (index === -1) return;
63 63