X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=webapp%2Fsrc%2Fapp%2F%40core-xds%2Fservices%2Fproject.service.ts;h=9cf265514906aa67241c982f2dfabef38ef25714;hb=b9239d295a7fb7e3f5c595887b3bf77d50c8b216;hp=94469fe35abd8f34c3534d5f3b1f6b4f897ac473;hpb=4e9af3723740f16f3843a68508b6e933ea871b98;p=src%2Fxds%2Fxds-agent.git 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);