diff options
author | ThibG <thib@sitedethib.com> | 2020-03-28 17:59:45 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2020-04-02 20:39:44 +0200 |
commit | 3eede6f64b78660d94a796641620f086fa0aca87 (patch) | |
tree | 48c42f73619c834cdd88dccff7b5ee2ec8cd40b8 /app/javascript/flavours/glitch/middleware | |
parent | f3eff922a3350b9c54ef6fd5f8804722fdbe4c9c (diff) |
[Glitch] Fix 404 and 410 API errors being silently discarded in WebUI
Port front-end changes from 0d117c106aa72f78dd5cdd371849dd8ce3120198 to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/middleware')
-rw-r--r-- | app/javascript/flavours/glitch/middleware/errors.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/middleware/errors.js b/app/javascript/flavours/glitch/middleware/errors.js index 212c1f4ad..ade529a4e 100644 --- a/app/javascript/flavours/glitch/middleware/errors.js +++ b/app/javascript/flavours/glitch/middleware/errors.js @@ -8,7 +8,7 @@ export default function errorsMiddleware() { const isFail = new RegExp(`${defaultFailSuffix}$`, 'g'); if (action.type.match(isFail)) { - dispatch(showAlertForError(action.error)); + dispatch(showAlertForError(action.error, action.skipNotFound)); } } |