Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions static/app/views/dashboards/detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,13 @@ class DashboardDetail extends Component<Props, State> {

if (
prevProps.organization !== this.props.organization ||
prevProps.location !== this.props.location ||
prevProps.router !== this.props.router ||
// The only part of `location` used by `WidgetLegendSelectionState` is
// `unselectedSeries`. Don't bother comparing anything else. Once this
// component is a functional component, we'll move the selection state
// into a hook, and make sure it doesn't re-render too much.
prevProps.location.query.unselectedSeries !==
this.props.location.query.unselectedSeries ||
prevProps.navigate !== this.props.navigate ||
prevProps.dashboard !== this.props.dashboard
) {
this.setState({
Expand Down
Loading