Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:bug: Fix a bug in RssFeed widget that crashes on small feeds.

Josh Coleb6ae17aad17a
diff --git a/src/components/Widgets/RssFeed.vue b/src/components/Widgets/RssFeed.vue
index f958f603..4b56873b 100644
--- a/src/components/Widgets/RssFeed.vue
+++ b/src/components/Widgets/RssFeed.vue
@@ -131,7 +131,7 @@ export default {
const posts = [];
let { length } = items;
if (this.limit) {
- length = this.limit;
+ length = Math.min(length, this.limit);
}
for (let i = 0; length > i; i += 1) {
posts.push({