From 852919b4b240618af10db668890ff9d155cf1638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anne=20L=27H=C3=B4te?= Date: Tue, 2 Apr 2024 15:52:24 +0200 Subject: [PATCH] fix(filters): Preserve current search while changing view --- client/src/pages/filters.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/filters.jsx b/client/src/pages/filters.jsx index e8f61050..b0e9ef28 100644 --- a/client/src/pages/filters.jsx +++ b/client/src/pages/filters.jsx @@ -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 })} >