mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
Fix histogram-graph building invalid query
This commit is contained in:
parent
9c3473e6b4
commit
cf474f7428
1 changed files with 2 additions and 2 deletions
|
@ -178,8 +178,8 @@ export function histogramGraph(
|
|||
|
||||
if (data.onClick) {
|
||||
hoverzone
|
||||
.filter(([bin]: [Bin<number, number>, number]) => bin.length > 0)
|
||||
.filter(([bin]) => bin.length > 0)
|
||||
.attr("class", "clickable")
|
||||
.on("click", data.onClick);
|
||||
.on("click", (_event, [bin]) => data.onClick!(bin));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue