Skip to content

Commit

Permalink
fix bug which prevents to show workspace-details page (eclipse-che#3850)
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Kurinnyi <[email protected]>
  • Loading branch information
Oleksii Kurinnyi authored Jan 23, 2017
1 parent a167181 commit 2cf8c03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class WorkspaceDetailsController {

init(): void {
let routeParams = this.$route.current.params;
this.workspaceNamespace = this.$location.search().namespace || (this.getNamespaces() ? this.getNamespaces()[0].id : undefined);
this.workspaceNamespace = this.$location.search().namespace || (this.getNamespaces().length ? this.getNamespaces()[0].id : undefined);
if (routeParams && routeParams.namespace && routeParams.workspaceName) {
this.isCreationFlow = false;
this.namespace = routeParams.namespace;
Expand Down

0 comments on commit 2cf8c03

Please sign in to comment.