diff --git a/frontend/app/features/content/shared/forms/array-item.component.ts b/frontend/app/features/content/shared/forms/array-item.component.ts index 79662a334..96f6eb21e 100644 --- a/frontend/app/features/content/shared/forms/array-item.component.ts +++ b/frontend/app/features/content/shared/forms/array-item.component.ts @@ -10,7 +10,6 @@ import { AppLanguageDto, EditContentForm, FieldArrayItemForm, FieldArrayItemValu import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { ArraySectionComponent } from './array-section.component'; -import { FieldEditorComponent } from './field-editor.component'; interface State { // The when the section is collapsed. @@ -63,7 +62,7 @@ export class ArrayItemComponent extends StatefulComponent implements OnCh @Input() public languages: ReadonlyArray; - @ViewChildren(FieldEditorComponent) + @ViewChildren(ArraySectionComponent) public sections: QueryList; public isCollapsed = false; diff --git a/frontend/app/features/content/shared/forms/field-editor.component.html b/frontend/app/features/content/shared/forms/field-editor.component.html index f5a72d2d7..36aaf5c87 100644 --- a/frontend/app/features/content/shared/forms/field-editor.component.html +++ b/frontend/app/features/content/shared/forms/field-editor.component.html @@ -9,7 +9,7 @@
- this.sendDisabled(); } + public reset() { + this.sendInit(); + } + private sendInit() { this.sendMessage('init', { context: this.context || {} }); }