mirror of
https://github.com/hexastack/hexabot
synced 2025-06-04 03:26:22 +00:00
fix: editText, addText warnning attribute not recognized by html
This commit is contained in:
parent
78df48c398
commit
100cab6c51
@ -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