From 100cab6c512f76078c6d8ce7d89b7868ad6a82fa Mon Sep 17 00:00:00 2001 From: abdou6666 Date: Fri, 4 Apr 2025 11:43:58 +0100 Subject: [PATCH] fix: editText, addText warnning attribute not recognized by html --- frontend/src/app-components/dialogs/GenericFormDialog.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app-components/dialogs/GenericFormDialog.tsx b/frontend/src/app-components/dialogs/GenericFormDialog.tsx index f73e0e57..df387ecb 100644 --- a/frontend/src/app-components/dialogs/GenericFormDialog.tsx +++ b/frontend/src/app-components/dialogs/GenericFormDialog.tsx @@ -24,11 +24,13 @@ export const GenericFormDialog = ({ Form, rowKey, payload: data, + editText, + addText, ...rest }: GenericFormDialogProps) => { const { t } = useTranslate(); const hasRow = rowKey ? data?.[rowKey] : data; - const translationKey = hasRow ? rest.editText : rest.addText; + const translationKey = hasRow ? editText : addText; return (