From b9239d295a7fb7e3f5c595887b3bf77d50c8b216 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Fri, 24 Nov 2017 15:38:01 +0100 Subject: Fixed current project selection on deletion - Dashboard --- webapp/src/app/@core-xds/services/project.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapp') diff --git a/webapp/src/app/@core-xds/services/project.service.ts b/webapp/src/app/@core-xds/services/project.service.ts index 94469fe..9cf2655 100644 --- a/webapp/src/app/@core-xds/services/project.service.ts +++ b/webapp/src/app/@core-xds/services/project.service.ts @@ -246,7 +246,7 @@ export class ProjectService { } const delId = this._prjsList[idx].id; this._prjsList.splice(idx, 1); - if (this._prjsList[idx].id === this._current.id) { + if (delId === this._current.id) { this.setCurrent(this._prjsList[0]); } this.prjsSubject.next(this._prjsList); -- cgit 1.2.3-korg