Skip to content

Commit 78786b3

Browse files
wellDan28alexcanessa
authored andcommitted
fix the condition should use the length property of filteredTags (#157)
1 parent b034e4d commit 78786b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/Gren.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ class Gren {
312312
});
313313
const totalPages = this._getLastPage(link);
314314

315-
if ((this.options.tags.indexOf('all') >= 0 || filteredTags < 2) && totalPages && +page < totalPages) {
315+
if ((this.options.tags.indexOf('all') >= 0 || filteredTags.length < 2) && totalPages && +page < totalPages) {
316316
return this._getLastTags(releases, page + 1).then(moreTags => moreTags.concat(filteredTags));
317317
}
318318

0 commit comments

Comments
 (0)