kopia lustrzana https://github.com/cheeaun/phanpy
Test show error toast if first load + no items
rodzic
50a2fe1743
commit
41af07c440
|
@ -121,6 +121,9 @@ function Timeline({
|
|||
} catch (e) {
|
||||
console.error(e);
|
||||
setUIState('error');
|
||||
if (firstLoad && !items.length && errorText) {
|
||||
showToast(errorText);
|
||||
}
|
||||
} finally {
|
||||
loadItems.cancel();
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue