Skip to content

Commit 770c079

Browse files
authored
fix: height graph renders correctly when reopened (#349)
1 parent 756fcd3 commit 770c079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/heightgraph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ const HeightGraph: React.FC<HeightGraphProps> = ({
239239
return () => {
240240
tooltip.remove();
241241
};
242-
}, [data, dimensions, onHighlight]);
242+
}, [data, dimensions, onHighlight, isExpanded]);
243243

244244
const [prevProps, setPrevProps] = useState({ width, height });
245245
if (prevProps.width !== width || prevProps.height !== height) {

0 commit comments

Comments
 (0)