Merge pull request #264 from Materialious/fix/sub-feed

Fixed sub feed not loading if notifications disabled
This commit is contained in:
Ward
2024-05-07 10:56:32 +12:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "Materialious",
"version": "1.0.2",
"version": "1.0.3",
"description": "Modern material design for Invidious.",
"author": {
"name": "Ward Pearce",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "materialious",
"version": "1.0.2",
"version": "1.0.3",
"private": true,
"scripts": {
"dev": "vite dev",
@@ -15,7 +15,7 @@
async function loadMore(event: InfiniteEvent) {
currentPage++;
const feed = await getFeed(100, currentPage);
if (feed.notifications.length === 0) {
if (feed.videos.length === 0) {
event.detail.complete();
} else {
videos = [...videos, ...feed.videos, ...feed.notifications];