This commit is contained in:
Florian Scholdei
2019-01-29 14:55:10 +01:00
parent c331aa55e3
commit 554b24a199

View File

@@ -39,7 +39,9 @@ class BranchSelector extends React.Component<Props, State> {
} }
componentDidMount() { componentDidMount() {
const selectedBranch = this.props.branches.find(branch => branch.name === this.props.selectedBranch); const selectedBranch = this.props.branches.find(
branch => branch.name === this.props.selectedBranch
);
this.setState({ selectedBranch }); this.setState({ selectedBranch });
} }