Skip to content

Commit

Permalink
fix feed properties undefined form error
Browse files Browse the repository at this point in the history
  • Loading branch information
scottreisdorf committed Oct 11, 2018
1 parent 9b35fe6 commit 2b45dc9
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,14 @@ export class DefineFeedPropertiesComponent extends AbstractFeedStepComponent {
ngAfterViewInit(){
this.subscribeToFormDirtyCheck(this.formGroup);

this.formGroup.get('userPropertyForm').valueChanges.subscribe(changes => {
if(!this.feed.readonly){
this.displayEditActions = true;
}
});
let formGroup = this.formGroup.get('userPropertyForm');
if(formGroup) {
formGroup.valueChanges.subscribe(changes => {
if(!this.feed.readonly){
this.displayEditActions = true;
}
});
}
}

public feedStateChange(event:FeedEditStateChangeEvent){
Expand Down

0 comments on commit 2b45dc9

Please sign in to comment.