From fddaafc0e1b0112d23ff07cd6ef1eb98ba592b44 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Thu, 19 Dec 2024 07:16:06 +0100 Subject: [PATCH] fix: apply feedback update --- frontend/src/components/contents/ContentDialog.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/contents/ContentDialog.tsx b/frontend/src/components/contents/ContentDialog.tsx index 9267e1d2..e8a48773 100644 --- a/frontend/src/components/contents/ContentDialog.tsx +++ b/frontend/src/components/contents/ContentDialog.tsx @@ -53,12 +53,14 @@ interface ContentFieldInput { [key: string]: any; } >; + idx: number; } const ContentFieldInput: React.FC = ({ contentField: contentField, field, errors, + idx, }) => { const { t } = useTranslate(); @@ -68,7 +70,7 @@ const ContentFieldInput: React.FC = ({ case ContentFieldType.URL: return ( = ({ - {(contentType?.fields || []).map((contentField) => ( + {(contentType?.fields || []).map((contentField, index) => ( = ({ contentField={contentField} field={field} errors={errors} + idx={index} /> )}