diff --git a/src/app/stack/stack-details/add-work-flow.service.ts b/src/app/stack/stack-details/add-work-flow.service.ts index a70e7b3..bb42cba 100644 --- a/src/app/stack/stack-details/add-work-flow.service.ts +++ b/src/app/stack/stack-details/add-work-flow.service.ts @@ -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; + } }); } }