Skip to content

Commit

Permalink
Fix slope and strip chart
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafasaifee42 committed Dec 27, 2024
1 parent 9c53f84 commit 77e9b04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Components/Graphs/SlopeChart/Graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ export function Graph(props: Props) {
resetSelectionOnDoubleClick
) {
setMouseClickData(undefined);
onSeriesMouseClick(undefined);
if (onSeriesMouseClick) onSeriesMouseClick(undefined);
} else {
setMouseClickData(d);
onSeriesMouseClick(d);
if (onSeriesMouseClick) onSeriesMouseClick(d);
}
}
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ export function Graph(props: Props) {
resetSelectionOnDoubleClick
) {
setMouseClickData(undefined);
onSeriesMouseClick(undefined);
if (onSeriesMouseClick) onSeriesMouseClick(undefined);
} else {
setMouseClickData(d);
onSeriesMouseClick(d);
if (onSeriesMouseClick) onSeriesMouseClick(d);
}
}
}}
Expand Down

0 comments on commit 77e9b04

Please sign in to comment.