diff --git a/frontend/app/features/schemas/pages/schemas/schema-form.component.html b/frontend/app/features/schemas/pages/schemas/schema-form.component.html index 87627a5b6..84eb2427e 100644 --- a/frontend/app/features/schemas/pages/schemas/schema-form.component.html +++ b/frontend/app/features/schemas/pages/schemas/schema-form.component.html @@ -73,7 +73,7 @@ Hide - + diff --git a/frontend/app/shared/state/schemas.forms.ts b/frontend/app/shared/state/schemas.forms.ts index 9847f2984..c2f75771a 100644 --- a/frontend/app/shared/state/schemas.forms.ts +++ b/frontend/app/shared/state/schemas.forms.ts @@ -46,14 +46,20 @@ export class CreateSchemaForm extends Form { ] ], isSingleton: false, - import: {} + importing: {} })); } - public transformSubmit(value: any) { - const result = { ...value.import || {}, name: value.name, isSingleton: value.isSingleton }; + public transformLoad(value: CreateSchemaDto) { + const { name, isSingleton, ...importing } = value; - return result; + return { name, isSingleton, importing }; + } + + public transformSubmit(value: any): CreateSchemaDto { + const { name, isSingleton, importing } = value; + + return { name, isSingleton, ...importing }; } }