mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): dont mess up redux if 403 gets thrown
This commit is contained in:
parent
57c0fcb93d
commit
977a77f4e6
@ -29,7 +29,8 @@ export const authToastMiddleware: Middleware = () => (next) => (action) => {
|
||||
const endpointName = parsed.meta?.arg?.endpointName;
|
||||
if (endpointName === 'getImageDTO') {
|
||||
// do not show toast if problem is image access
|
||||
return;
|
||||
return next(action);
|
||||
|
||||
}
|
||||
|
||||
const customMessage = parsed.payload.data.detail !== 'Forbidden' ? parsed.payload.data.detail : undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user