From 21780216d56e9ae6d9072b4668404aa07efe7f19 Mon Sep 17 00:00:00 2001 From: Patrick Skowronek Date: Fri, 15 Nov 2024 11:08:11 +0100 Subject: [PATCH 1/2] fix: search for name and key when clicked on a char --- .../lib/src/components/results/ChartComponent.wc.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/lib/src/components/results/ChartComponent.wc.svelte b/packages/lib/src/components/results/ChartComponent.wc.svelte index 5d7b37d3..debcd7a3 100644 --- a/packages/lib/src/components/results/ChartComponent.wc.svelte +++ b/packages/lib/src/components/results/ChartComponent.wc.svelte @@ -503,6 +503,7 @@ * adds stratifier as a search parameter when clicked */ const handleClickOnStratifier = (): void => { + console.log("test"); /** * the clicked stratifier */ @@ -542,7 +543,10 @@ } else { childCategorie.criteria.forEach( (criterion: Criteria) => { - if (criterion.key === label) { + if ( + criterion.key === label || + criterion.name === label + ) { values[0] = { name: criterion.name, value: criterion.key, From 76c0586db0d58748b0c373a84b86a47a7e187982 Mon Sep 17 00:00:00 2001 From: patrickskowronekdkfz <86347677+patrickskowronekdkfz@users.noreply.github.com> Date: Fri, 15 Nov 2024 13:23:30 +0100 Subject: [PATCH 2/2] Update ChartComponent.wc.svelte --- packages/lib/src/components/results/ChartComponent.wc.svelte | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/lib/src/components/results/ChartComponent.wc.svelte b/packages/lib/src/components/results/ChartComponent.wc.svelte index debcd7a3..d2582b7b 100644 --- a/packages/lib/src/components/results/ChartComponent.wc.svelte +++ b/packages/lib/src/components/results/ChartComponent.wc.svelte @@ -503,7 +503,6 @@ * adds stratifier as a search parameter when clicked */ const handleClickOnStratifier = (): void => { - console.log("test"); /** * the clicked stratifier */