mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-28 16:14:33 +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 = [];
|
const posts = [];
|
||||||
let { length } = items;
|
let { length } = items;
|
||||||
if (this.limit) {
|
if (this.limit) {
|
||||||
length = this.limit;
|
length = Math.min(length, this.limit);
|
||||||
}
|
}
|
||||||
for (let i = 0; length > i; i += 1) {
|
for (let i = 0; length > i; i += 1) {
|
||||||
posts.push({
|
posts.push({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user