fix feed properties undefined form error
@@ -53,12 +53,15 @@ export class DefineFeedPropertiesComponent extends AbstractFeedStepComponent {
ngAfterViewInit(){
this.subscribeToFormDirtyCheck(this.formGroup);
- this.formGroup.get('userPropertyForm').valueChanges.subscribe(changes => {
+ let formGroup = this.formGroup.get('userPropertyForm');
+ if(formGroup) {
+ formGroup.valueChanges.subscribe(changes => {
if(!this.feed.readonly){
this.displayEditActions = true;
}
});
}
+ }
public feedStateChange(event:FeedEditStateChangeEvent){
this.initEditActions();
