aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-24 15:38:01 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-24 15:38:01 +0100
commitb9239d295a7fb7e3f5c595887b3bf77d50c8b216 (patch)
tree30ed7aacc650fce811a0e1348763c1b32ed88225
parent4e9af3723740f16f3843a68508b6e933ea871b98 (diff)
Fixed current project selection on deletion - Dashboard
-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);