From cf474f74281f89f1601479c682171fcdde1c3ebf Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Sat, 30 Jan 2021 02:46:26 +0100 Subject: [PATCH] Fix histogram-graph building invalid query --- ts/graphs/histogram-graph.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/graphs/histogram-graph.ts b/ts/graphs/histogram-graph.ts index cc8085c2b..9f2e4e409 100644 --- a/ts/graphs/histogram-graph.ts +++ b/ts/graphs/histogram-graph.ts @@ -178,8 +178,8 @@ export function histogramGraph( if (data.onClick) { hoverzone - .filter(([bin]: [Bin, number]) => bin.length > 0) + .filter(([bin]) => bin.length > 0) .attr("class", "clickable") - .on("click", data.onClick); + .on("click", (_event, [bin]) => data.onClick!(bin)); } }