mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 12:59:14 +00:00
fix(frontend): update onError toast error message
This commit is contained in:
parent
0a77bc87ac
commit
c520fd8f36
@ -65,7 +65,7 @@ export const TranslationForm: FC<ComponentFormProps<ITranslation>> = ({
|
|||||||
const { mutate: updateTranslation } = useUpdate(EntityType.TRANSLATION, {
|
const { mutate: updateTranslation } = useUpdate(EntityType.TRANSLATION, {
|
||||||
onError: (error: Error) => {
|
onError: (error: Error) => {
|
||||||
rest.onError?.();
|
rest.onError?.();
|
||||||
toast.error(error || t("message.internal_server_error"));
|
toast.error(error.message || t("message.internal_server_error"));
|
||||||
},
|
},
|
||||||
onSuccess() {
|
onSuccess() {
|
||||||
rest.onSuccess?.();
|
rest.onSuccess?.();
|
||||||
|
Loading…
Reference in New Issue
Block a user