Fixed issue with avvikelsereport not showing questions
This commit is contained in:
@@ -110,6 +110,10 @@ export class AvvikelseReportFormComponent implements OnInit, OnDestroy {
|
|||||||
this.subscriptions.push(
|
this.subscriptions.push(
|
||||||
this.chosenReason$.subscribe(() => {
|
this.chosenReason$.subscribe(() => {
|
||||||
this.shouldValidate$.next(false);
|
this.shouldValidate$.next(false);
|
||||||
|
}),
|
||||||
|
this.questionsForChosenReason$.subscribe(questions => {
|
||||||
|
this.clearQuestions();
|
||||||
|
questions.forEach(question => this.addQuestionToForm(question));
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user