Phlare: Reset flame graph after query is run (#59609)

Reset flame graph after query is run
This commit is contained in:
Joey Tawadrous
2022-12-13 09:40:38 +00:00
committed by GitHub
parent d65899de7b
commit 4c4bc3bd32
@@ -54,6 +54,12 @@ const FlameGraphContainer = (props: Props) => {
}
}, [selectedView, setSelectedView, containerWidth]);
useEffect(() => {
setTopLevelIndex(0);
setRangeMin(0);
setRangeMax(1);
}, [props.data]);
return (
<div ref={sizeRef} className={styles.container}>
<FlameGraphHeader