Skip to content

Commit

Permalink
fix: hotfix for stray query parameters attached to url (#1301)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhagerty authored May 1, 2023
1 parent bcdb0b2 commit 821ac17
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ function toggleAccordionFromSearch() {
});
}

if (Object.keys(params).length) {
if (Object.keys(params).length && Object.prototype.hasOwnProperty.call(params, 'search')) {
toggleAccordionFromSearch();
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ function toggleTimelineFromSearch() {
});
}

if (Object.keys(params).length) {
if (Object.keys(params).length && Object.prototype.hasOwnProperty.call(params, 'search')) {
toggleTimelineFromSearch();
}
Loading

0 comments on commit 821ac17

Please sign in to comment.