[WEB-4453] fix: enable revalidation on focus and stale data for current user fetch to handle 401 errors (#7353)
This commit is contained in:
parent
e306a92adb
commit
a2a62e2731
3 changed files with 7 additions and 3 deletions
|
|
@ -26,7 +26,7 @@ export class UserService extends APIService {
|
|||
return this.get("/api/users/me/")
|
||||
.then((response) => response?.data)
|
||||
.catch((error) => {
|
||||
throw error?.response;
|
||||
throw error;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue