diff --git a/registrants/src/UI/embc-registrant/src/app/feature-components/needs-assessment/needs-assessment.component.html b/registrants/src/UI/embc-registrant/src/app/feature-components/needs-assessment/needs-assessment.component.html
index c1f0a2c49..0f0c04683 100644
--- a/registrants/src/UI/embc-registrant/src/app/feature-components/needs-assessment/needs-assessment.component.html
+++ b/registrants/src/UI/embc-registrant/src/app/feature-components/needs-assessment/needs-assessment.component.html
@@ -55,7 +55,7 @@
@if (step.stepName === 'Needs') {
@if (needsFormLoaded) {
-
+
}
} @else {
diff --git a/registrants/src/UI/embc-registrant/src/app/sharedModules/forms/needs-assessment-forms/identify-needs/identify-needs.component.ts b/registrants/src/UI/embc-registrant/src/app/sharedModules/forms/needs-assessment-forms/identify-needs/identify-needs.component.ts
index bde1c31ba..7bcee2183 100644
--- a/registrants/src/UI/embc-registrant/src/app/sharedModules/forms/needs-assessment-forms/identify-needs/identify-needs.component.ts
+++ b/registrants/src/UI/embc-registrant/src/app/sharedModules/forms/needs-assessment-forms/identify-needs/identify-needs.component.ts
@@ -24,7 +24,15 @@ import { DialogContent } from 'src/app/core/model/dialog-content.model';
imports: [ReactiveFormsModule, MatCardModule, MatFormFieldModule, MatCheckboxModule, MatRadioModule]
})
export default class IdentifyNeedsComponent implements OnInit {
- @Input() identifyNeedsForm: UntypedFormGroup = this.formCreationService.createNeedsForm();
+ _form: UntypedFormGroup;
+
+ @Input()
+ set form(form: UntypedFormGroup) {
+ this._form = form;
+ this.identifyNeedsForm = form;
+ }
+
+ identifyNeedsForm: UntypedFormGroup = this.formCreationService.createNeedsForm();
identifyNeedsForm$: Subscription;
constructor(
@@ -33,7 +41,7 @@ export default class IdentifyNeedsComponent implements OnInit {
) {}
ngOnInit(): void {
- if (!this.identifyNeedsForm) {
+ if (!this._form) {
this.identifyNeedsForm$ = this.formCreationService.getIndentifyNeedsForm().subscribe((identifyNeedsForm) => {
this.identifyNeedsForm = identifyNeedsForm;
});