mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-16 07:11:15 +03:00
Test show error toast if first load + no items
This commit is contained in:
parent
50a2fe1743
commit
41af07c440
1 changed files with 3 additions and 0 deletions
|
@ -121,6 +121,9 @@ function Timeline({
|
|||
} catch (e) {
|
||||
console.error(e);
|
||||
setUIState('error');
|
||||
if (firstLoad && !items.length && errorText) {
|
||||
showToast(errorText);
|
||||
}
|
||||
} finally {
|
||||
loadItems.cancel();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue