Skip to content

Commit

Permalink
feat: add limit for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Feb 23, 2021
1 parent 40a8858 commit c2dab28
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions store/booru.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export const actions = {
id: postID,
},

tags: { tag },
tags: { tag, limit: 15 },
}

const urlToFetch = new URL(
Expand Down Expand Up @@ -322,7 +322,10 @@ export const actions = {

case 'tags':
urlToFetch.searchParams.append('tag', queries.tags.tag)
// url.searchParams.append('limit', queryObj.limit)

if (queries.tags.limit) {
urlToFetch.searchParams.append('limit', queries.tags.limit)
}
break

default:
Expand Down

0 comments on commit c2dab28

Please sign in to comment.