You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by an...@apache.org on 2019/10/21 09:09:34 UTC
[incubator-dlab] branch DLAB-1057 updated: [DLAB-1157]: added extra
check if active project in users list
This is an automated email from the ASF dual-hosted git repository.
ankovalyshyn pushed a commit to branch DLAB-1057
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-1057 by this push:
new 422b5f3 [DLAB-1157]: added extra check if active project in users list
422b5f3 is described below
commit 422b5f3fd65c0bed22f22a7c1890fdbacde7aa5b
Author: Andriana Kovalyshyn <An...@epam.com>
AuthorDate: Mon Oct 21 12:09:20 2019 +0300
[DLAB-1157]: added extra check if active project in users list
---
.../exploratory/create-environment/create-environment.component.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.ts b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.ts
index d1ccb64..4e914e7 100644
--- a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.ts
@@ -71,8 +71,8 @@ export class ExploratoryEnvironmentCreateComponent implements OnInit {
public getUserProjects() {
this.projectService.getUserProjectsList().subscribe((projects: any) => {
this.projects = projects;
- if (this.resourceGrid.activeProject) {
- const activeProject = projects.find(item => item.name === this.resourceGrid.activeProject);
+ const activeProject = projects.find(item => item.name === this.resourceGrid.activeProject);
+ if (this.resourceGrid.activeProject && activeProject) {
this.setEndpoints(activeProject)
this.createExploratoryForm.controls['project'].setValue(activeProject.name);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org