mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-27 23:54:24 +02:00
🔀 Merge pull request #1817 from SharpCoder/master
🐛 Fix a bug in RssFeed widget that crashes on small feeds.
This commit is contained in:
commit
2576b541b0
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user