Skip to content

Commit

Permalink
Merge pull request #9977 from desktop/do-not-filter-before-comparing
Browse files Browse the repository at this point in the history
Do not execute compare action on mousedown events
  • Loading branch information
rafeca committed Jun 11, 2020
2 parents 0612294 + c63b5bc commit ba04922
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/src/ui/history/compare.tsx
Expand Up @@ -547,14 +547,6 @@ export class CompareSidebar extends React.Component<
branch: Branch | null,
source: SelectionSource
) => {
if (source.kind === 'mouseclick' && branch != null) {
this.props.dispatcher.executeCompare(this.props.repository, {
kind: HistoryTabMode.Compare,
comparisonMode: ComparisonMode.Behind,
branch,
})
}

this.setState({
focusedBranch: branch,
})
Expand Down

0 comments on commit ba04922

Please sign in to comment.