mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Merge pull request #887 from Hexastack/fix/editText-addText-warning-dialog
fix: editText, addText warning attribute not recognized by html
This commit is contained in:
commit
3804d1774b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user