From d64abedf9f756da23cc80d3c53c96a93628ee3f4 Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 9 Jan 2023 15:41:06 +0000 Subject: [PATCH 1/2] fix: fix rss-ticker TypeError --- packages/frontend/src/widgets/rss-ticker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/widgets/rss-ticker.vue b/packages/frontend/src/widgets/rss-ticker.vue index 37672e13c..02349ec91 100644 --- a/packages/frontend/src/widgets/rss-ticker.vue +++ b/packages/frontend/src/widgets/rss-ticker.vue @@ -111,7 +111,7 @@ const tick = () => { if (widgetProps.shuffle) { shuffle(feed.items); } - rawItems.value = feed.items; + rawItems.value = feed.items ?? []; fetching.value = false; key++; }); From 02df6a28cdf9234250ade660778051bc7df4582a Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 9 Jan 2023 15:45:22 +0000 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E7=B6=9Arss-ticker.vue=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/widgets/rss-ticker.vue | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/frontend/src/widgets/rss-ticker.vue b/packages/frontend/src/widgets/rss-ticker.vue index 02349ec91..2620ff4eb 100644 --- a/packages/frontend/src/widgets/rss-ticker.vue +++ b/packages/frontend/src/widgets/rss-ticker.vue @@ -108,9 +108,6 @@ const tick = () => { window.fetch(fetchEndpoint.value, {}) .then(res => res.json()) .then(feed => { - if (widgetProps.shuffle) { - shuffle(feed.items); - } rawItems.value = feed.items ?? []; fetching.value = false; key++;