Skip to content

Commit

Permalink
Removed another unnecessary element
Browse files Browse the repository at this point in the history
  • Loading branch information
askvortsov1 committed Feb 29, 2020
1 parent f1c65ae commit 7f10674
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/src/forum/addTagFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ export default function() {
// Add a parameter for the IndexPage to pass on to the DiscussionList that
// will let us filter discussions by tag.
extend(IndexPage.prototype, 'params', function (params) {
if (m.route.param('tags')) {
params.tags = m.route.param('tags');
} else {
params.tags = "";
}
params.tags = m.route.param('tags');
});

// Translate that parameter into a gambit appended to the search query.
Expand Down

0 comments on commit 7f10674

Please sign in to comment.