Skip to content

Commit

Permalink
fix(dev-app): report from form params
Browse files Browse the repository at this point in the history
  • Loading branch information
peppedeka authored and trik committed Oct 12, 2021
1 parent 558af3a commit e786804
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dev-app/mat-report-from-form/report-from-form-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ export class ReportFromFormDemo {
constructor(
private _ts: TranslocoService,
) {
AjfFormSerializer.fromJson(formSchemaObj);
this.reportSchema = reportFromForm.reportFromForm(formSchemaObj);
const form = AjfFormSerializer.fromJson(formSchemaObj);
this.reportSchema = reportFromForm.reportFromForm(form);
this.reportSchemaStringified = JSON.stringify(this.reportSchema);
this.reportInstance$.next(createReportInstance(
this.reportSchema, {forms: this._generateRandomCtx(formSchemaObj)}, _ts));
this.reportInstance$.next(
createReportInstance(this.reportSchema, {forms: this._generateRandomCtx(form)}, _ts));
}

setSchema(): void {
Expand Down

0 comments on commit e786804

Please sign in to comment.