Test show error toast if first load + no items

This commit is contained in:
Lim Chee Aun 2024-08-29 16:47:11 +08:00
parent 50a2fe1743
commit 41af07c440

View file

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