Skip to content

Commit

Permalink
fix(filters): Preserve current search while changing view
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Apr 2, 2024
1 parent 0c9e0a3 commit 852919b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/pages/filters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default function Filters({ sendQuery }) {
id="segSelector"
// isVertical
name="segSelector"
onChange={(e) => setSearchParams({ view: e.target.value })}
onChange={(e) => setSearchParams({ ...currentSearchParams, view: e.target.value })}
>
<SegmentedElement
checked={currentSearchParams.view === 'openalex'}
Expand Down

0 comments on commit 852919b

Please sign in to comment.