mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Phlare: Reset flame graph after query is run (#59609)
Reset flame graph after query is run
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user