mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 08:48:47 +01:00
Fix wrong logic for silent fail
Some mastodon instances are getting swamped
This commit is contained in:
parent
605e6ac588
commit
e7cff25337
1 changed files with 2 additions and 1 deletions
|
@ -83,12 +83,13 @@ function StatusPage({ id }) {
|
||||||
states.statuses.set(id, heroStatus);
|
states.statuses.set(id, heroStatus);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// Silent fail if status is cached
|
// Silent fail if status is cached
|
||||||
|
console.error(e);
|
||||||
if (!hasStatus) {
|
if (!hasStatus) {
|
||||||
setUIState('error');
|
setUIState('error');
|
||||||
alert('Error fetching status');
|
alert('Error fetching status');
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const context = await contextFetch;
|
const context = await contextFetch;
|
||||||
|
|
Loading…
Reference in a new issue