Skip to content

Commit

Permalink
codenvy-2196: fix user namespace usage on workspace creation
Browse files Browse the repository at this point in the history
Signed-off-by: Ann Shumilova <ashumilova@codenvy.com>
  • Loading branch information
ashumilova committed May 16, 2017
1 parent 1676a82 commit 4bb162f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ export class WorkspaceDetailsController {
if (!this.namespaceId) {
const user = this.cheUser.getUser();
if (user) {
this.namespaceId = user.id;
this.namespaceId = user.name;
defer.resolve();
} else {
this.cheUser.fetchUser().then(() => {
this.namespaceId = user.id;
this.namespaceId = user.name;
defer.resolve();
}, (error: any) => {
defer.reject(error);
Expand Down

0 comments on commit 4bb162f

Please sign in to comment.