mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 16:58:47 +01: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) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
setUIState('error');
|
setUIState('error');
|
||||||
|
if (firstLoad && !items.length && errorText) {
|
||||||
|
showToast(errorText);
|
||||||
|
}
|
||||||
} finally {
|
} finally {
|
||||||
loadItems.cancel();
|
loadItems.cancel();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue