Skip to content

Commit

Permalink
ui-spacetimechart: fix op graduation display when hidden
Browse files Browse the repository at this point in the history
add operationnalPoints in fingerprint to trigger changes in useCanvas()
then redraw charts if one or many operationnalPoints is hidden by
machette settings panel

Signed-off-by: Yohh <[email protected]>
  • Loading branch information
Yohh committed Feb 26, 2025
1 parent 83d2999 commit 652440d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui-spacetimechart/src/components/SpaceTimeChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export const SpaceTimeChart = (props: SpaceTimeChartProps) => {
const fingerprint = useMemo(
() =>
JSON.stringify({
operationalPoints,
width,
height,
spaceOrigin,
Expand All @@ -77,6 +78,7 @@ export const SpaceTimeChart = (props: SpaceTimeChartProps) => {
showTicks,
}),
[
operationalPoints,
width,
height,
spaceOrigin,
Expand Down

0 comments on commit 652440d

Please sign in to comment.