diff --git a/src/frontend/app/indexation/indexing-form/indexing-form.component.ts b/src/frontend/app/indexation/indexing-form/indexing-form.component.ts index 47629e181f2fb23448a64441883f8e64ce07a49d..586c10e9ff09820415812b1879c0219095c6de07 100755 --- a/src/frontend/app/indexation/indexing-form/indexing-form.component.ts +++ b/src/frontend/app/indexation/indexing-form/indexing-form.component.ts @@ -306,7 +306,9 @@ export class IndexingFormComponent implements OnInit { this.http.get('../rest/customFields').pipe( tap((data: any) => { - this.availableCustomFields = data.customFields.map((info: any) => { + const withFormMode = data.customFields.filter((item: { mode: any; }) => item.mode === 'form'); + console.log(withFormMode); + this.availableCustomFields = withFormMode.map((info: any) => { info.identifier = 'indexingCustomField_' + info.id; info.system = false; info.enabled = true;