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 = () => { renderBranchSelector = () => {
const { repository, branches } = this.props; const { repository, branches, selected } = this.props;
if (repository._links.branches) { if (repository._links.branches) {
return ( return (
<BranchSelector <BranchSelector
branches={branches} branches={branches}
selectedBranch={selected}
selected={(b: Branch) => { selected={(b: Branch) => {
this.branchSelected(b); this.branchSelected(b);
}} }}