From: Sebastien Douheret Date: Fri, 24 Nov 2017 14:38:01 +0000 (+0100) Subject: Fixed current project selection on deletion - Dashboard X-Git-Tag: v1.0.0-rc1~12 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-agent.git;a=commitdiff_plain;h=b9239d295a7fb7e3f5c595887b3bf77d50c8b216 Fixed current project selection on deletion - Dashboard --- 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);