mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
fix(web): infinite scroll loop when there's only 1 page of notifications
This commit is contained in:
@@ -56,7 +56,7 @@ async function onLoadMore() {
|
||||
},
|
||||
});
|
||||
const incomingCount = incoming?.data.notifications.list.length ?? 0;
|
||||
if (incomingCount === 0) {
|
||||
if (incomingCount === 0 || incomingCount < props.pageSize) {
|
||||
canLoadMore.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user