Set selected branch

This commit is contained in:
René Pfeuffer
2018-10-23 13:02:45 +02:00
parent fa7626619c
commit f44f352a2a

View File

@@ -92,11 +92,12 @@ class BranchRoot extends React.Component<Props> {
}
renderBranchSelector = () => {
const { repository, branches } = this.props;
const { repository, branches, selected } = this.props;
if (repository._links.branches) {
return (
<BranchSelector
branches={branches}
selectedBranch={selected}
selected={(b: Branch) => {
this.branchSelected(b);
}}