From 0c54ef578f8f731a2a2b2b89b55e0f5f6ea35063 Mon Sep 17 00:00:00 2001 From: Valtteri Kantanen Date: Tue, 19 Nov 2024 13:07:47 +0200 Subject: [PATCH] [Custom population search] Fix unselecting a saved population --- .../src/components/CustomPopulation/CustomPopulationSearch.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/frontend/src/components/CustomPopulation/CustomPopulationSearch.jsx b/services/frontend/src/components/CustomPopulation/CustomPopulationSearch.jsx index 7ef7d937d3..5cfbbe83ef 100644 --- a/services/frontend/src/components/CustomPopulation/CustomPopulationSearch.jsx +++ b/services/frontend/src/components/CustomPopulation/CustomPopulationSearch.jsx @@ -129,7 +129,7 @@ export const CustomPopulationSearch = ({ setCustomPopulationState }) => { /> onSelectSearch(id)} + handleSearch={selected => onSelectSearch(selected?.id)} header="Saved populations" items={searches.map(search => ({ ...search,