0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-10 22:22:45 -05:00

fix(console): fix unexpected 401 error toast (#6416)

This commit is contained in:
Darcy Ye 2024-08-07 17:25:08 +08:00 committed by GitHub
parent ebc04a283d
commit f96a6e49a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -157,6 +157,7 @@ export const useStaticApi = ({
if (
isCloud &&
isDevFeaturesEnabled &&
isAuthenticated &&
['POST', 'PUT', 'DELETE'].includes(request.method) &&
response.status >= 200 &&
response.status < 300