Merge pull request #887 from Hexastack/fix/editText-addText-warning-dialog
Some checks failed
Build and Push Docker API Image / build-and-push (push) Has been cancelled
Build and Push Docker Base Image / build-and-push (push) Has been cancelled
Build and Push Docker UI Image / build-and-push (push) Has been cancelled

fix: editText, addText warning attribute not recognized by html
This commit is contained in:
Med Marrouchi
2025-04-04 14:36:33 +01:00
committed by GitHub

View File

@@ -24,11 +24,13 @@ export const GenericFormDialog = <T,>({
Form,
rowKey,
payload: data,
editText,
addText,
...rest
}: GenericFormDialogProps<T>) => {
const { t } = useTranslate();
const hasRow = rowKey ? data?.[rowKey] : data;
const translationKey = hasRow ? rest.editText : rest.addText;
const translationKey = hasRow ? editText : addText;
return (
<Form