Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(nullref): make sure space is available when context changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dgutride authored and joshuawilson committed Apr 5, 2017
1 parent fa2faa0 commit eb84a76
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/stack/stack-details/add-work-flow.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ export class AddWorkFlowService {

if (this.context && this.context.current) {
this.context.current.subscribe(currentContext => {
this.spaceId = currentContext.space.id;
this.stackWorkItemUrl = apiUrl + this.spacesString + '/' + this.spaceId + '/' + this.workItemsRoute;
if (currentContext.space) {
this.spaceId = currentContext.space.id;
this.stackWorkItemUrl = apiUrl + this.spacesString + '/' + this.spaceId + '/' + this.workItemsRoute;
}
});
}
}
Expand Down

0 comments on commit eb84a76

Please sign in to comment.