diff --git a/packages/pyroscope-flamegraph/src/FlameGraph/FlameGraphRenderer.tsx b/packages/pyroscope-flamegraph/src/FlameGraph/FlameGraphRenderer.tsx index 9ff940d753..b9e6af1519 100644 --- a/packages/pyroscope-flamegraph/src/FlameGraph/FlameGraphRenderer.tsx +++ b/packages/pyroscope-flamegraph/src/FlameGraph/FlameGraphRenderer.tsx @@ -258,6 +258,7 @@ class FlameGraphRenderer extends Component< ...this.state.flamegraphConfigs, ...this.initialFlamegraphState, }, + selectedItem: Maybe.nothing(), }); }; @@ -310,6 +311,7 @@ class FlameGraphRenderer extends Component< setActiveItem = (item: { name: string }) => { const { name } = item; + this.setState({ isFlamegraphDirty: true }); // if clicking on the same item, undo the search if (this.state.selectedItem.isJust) { @@ -318,7 +320,6 @@ class FlameGraphRenderer extends Component< selectedItem: Maybe.nothing(), }); return; - // name = ''; } }