Skip to content

Commit

Permalink
fix: verify variable type
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Oct 17, 2021
1 parent 75daacb commit 4a79c63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/RouterHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export class RouterHelper {
}

if (page != null) {
route.query.page = page
route.query.page = page.toString()
}

// Fix: separate tags by commas instead of repeating `tags`, like so: `&tags=example1&tags=example2`
if (tags.length) {
if (tags != null && Array.isArray(tags) && tags.length) {
route.query.tags = tags.join(',')
}

Expand Down

0 comments on commit 4a79c63

Please sign in to comment.