summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/src/app/@core-xds/services/project.service.ts2
1 files changed, 1 insertions, 1 deletions
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);