Skip to content

Commit

Permalink
fake change
Browse files Browse the repository at this point in the history
  • Loading branch information
alep85 committed Dec 13, 2023
1 parent cf62196 commit c55ba4e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/process-services/src/lib/form/form.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,18 @@ export class FormComponent extends FormBaseComponent implements OnInit, OnDestro
ngOnInit() {
this.formService.formContentClicked.pipe(takeUntil(this.onDestroy$)).subscribe((content) => this.formContentClicked.emit(content));

this.fakeMethod();
this.formService.validateForm.pipe(takeUntil(this.onDestroy$)).subscribe((validateFormEvent) => {
if (validateFormEvent.errorsField.length > 0) {
this.formError.next(validateFormEvent.errorsField);
}
});
}

fakeMethod() {
return 'fake';
}

ngOnDestroy() {
this.onDestroy$.next(true);
this.onDestroy$.complete();
Expand Down

0 comments on commit c55ba4e

Please sign in to comment.