mirror of
https://github.com/idanoo/autobrr
synced 2025-07-24 01:09:13 +00:00
fix(user): change username (#1502)
* fix(user): change username * fix(user): api client error improvements * fix(user): api client error improvements
This commit is contained in:
parent
da53230077
commit
5857945e71
3 changed files with 18 additions and 14 deletions
|
@ -52,6 +52,12 @@ export const queryClient = new QueryClient({
|
|||
},
|
||||
mutations: {
|
||||
onError: (error) => {
|
||||
console.log("mutation error: ", error)
|
||||
|
||||
if (error instanceof Response) {
|
||||
return
|
||||
}
|
||||
|
||||
// Use a format string to convert the error object to a proper string without much hassle.
|
||||
const message = (
|
||||
typeof (error) === "object" && typeof ((error as Error).message) ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue