Test show error toast if first load + no items

pull/698/head
Lim Chee Aun 2024-08-29 16:47:11 +08:00
rodzic 50a2fe1743
commit 41af07c440
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -121,6 +121,9 @@ function Timeline({
} catch (e) {
console.error(e);
setUIState('error');
if (firstLoad && !items.length && errorText) {
showToast(errorText);
}
} finally {
loadItems.cancel();
}