mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(frontend): update onError toast error message
This commit is contained in:
parent
6fe846d360
commit
3e8d5a1e1c
@ -31,7 +31,7 @@ export const LabelForm: FC<ComponentFormProps<ILabel>> = ({
|
|||||||
const options = {
|
const options = {
|
||||||
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