From 13e1290525c06cbcd7580d42c7e5867da9791c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien=20Loix?= Date: Tue, 19 Apr 2022 12:42:10 +0100 Subject: [PATCH] Improve comment --- .../static/forms/hook_form_lib/components/use_array.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/es_ui_shared/static/forms/hook_form_lib/components/use_array.ts b/src/plugins/es_ui_shared/static/forms/hook_form_lib/components/use_array.ts index 27a51467c5bda..d6ada976c875c 100644 --- a/src/plugins/es_ui_shared/static/forms/hook_form_lib/components/use_array.ts +++ b/src/plugins/es_ui_shared/static/forms/hook_form_lib/components/use_array.ts @@ -46,8 +46,9 @@ export const createArrayItem = (path: string, index: number, isNew = true): Arra /** * We create an internal field to represent the Array items. This field is not returned - * as part as the form data but is used internally to run validation on the array items - * and its value (an array of ArrayItem) is used to map to actual form fields. + * as part as the form data but is used internally to run validation on the array items. + * It is this internal field value (ArrayItem[]) that we then map to actual form fields + * (in the children func {({ items }) => (...)}) * * @param path The array path in the form data * @returns The internal array field path