Skip to content

Commit

Permalink
fix the condition should use the length property of filteredTags (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
wellDan28 authored and alexcanessa committed Apr 3, 2018
1 parent b034e4d commit 78786b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/Gren.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class Gren {
});
const totalPages = this._getLastPage(link);

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

Expand Down

0 comments on commit 78786b3

Please sign in to comment.