mirror of
https://iceshrimp.dev/blueb/Chuckya-fe-standalone.git
synced 2026-01-11 05:23:14 -08:00
don't alert for 501 api errors
This commit is contained in:
parent
80e5529217
commit
d184bdadea
2 changed files with 5 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
- added bite notification support
|
||||
- add bite user and bite status buttons on status and status detailed components
|
||||
- don't alert for 501 api errors
|
||||
|
||||
# Chuckya (standalone frontend)
|
||||
|
||||
|
|
|
|||
|
|
@ -44,6 +44,10 @@ export const showAlertForError = (error, skipNotFound = false) => {
|
|||
});
|
||||
}
|
||||
|
||||
// Reduce unnecessary popups for Iceshrimp.NET 501s
|
||||
if (status === 501)
|
||||
return null;
|
||||
|
||||
return showAlert({
|
||||
title: `${status}`,
|
||||
message: data.error || statusText,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue