fixed commits link in branches detail view

This commit is contained in:
Sebastian Sdorra
2019-10-29 08:27:21 +01:00
parent 107ac1197f
commit 11767f515d

View File

@@ -52,7 +52,7 @@ class ChangesetsRoot extends React.Component<Props> {
return (
this.props.branches &&
this.props.branches.length > 0 &&
this.props.selected !== this.props.branches.filter(b => b.defaultBranch === true)[0]
this.props.branches.filter(b => b.name === this.props.selected).length === 0
);
};