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

View File

@@ -1,7 +1,7 @@
// @flow
import React from "react";
import type {Branch} from "@scm-manager/ui-types";
import type { Branch } from "@scm-manager/ui-types";
import injectSheet from "react-jss";
import classNames from "classnames";
import DropDown from "./forms/DropDown";
@@ -39,7 +39,9 @@ class BranchSelector extends React.Component<Props, State> {
}
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 });
}