fixed crash because of extra detect changes call (#1519)

This commit is contained in:
Aditya Bist
2018-05-31 12:04:49 -07:00
committed by GitHub
parent 498bb47d7f
commit 1d3ead4031

View File

@@ -332,7 +332,6 @@ export abstract class DashboardPage extends AngularDisposable {
public handleTabClose(tab: TabComponent): void {
let index = this.tabs.findIndex(i => i.id === tab.identifier);
this.tabs.splice(index, 1);
this._cd.detectChanges();
this.angularEventingService.sendAngularEvent(this.dashboardService.getUnderlyingUri(), AngularEventType.CLOSE_TAB, { id: tab.identifier });
}
}