Skip to content

Commit

Permalink
feat: enable "reset view" button when table item is highlighted (#1703)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogfrogfog authored Nov 11, 2022
1 parent 8d92b0a commit 7b1bfd5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ class FlameGraphRenderer extends Component<
...this.state.flamegraphConfigs,
...this.initialFlamegraphState,
},
selectedItem: Maybe.nothing(),
});
};

Expand Down Expand Up @@ -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) {
Expand All @@ -318,7 +320,6 @@ class FlameGraphRenderer extends Component<
selectedItem: Maybe.nothing(),
});
return;
// name = '';
}
}

Expand Down

0 comments on commit 7b1bfd5

Please sign in to comment.