diff --git a/scm-ui/ui-components/src/BranchSelector.tsx b/scm-ui/ui-components/src/BranchSelector.tsx index 2e4972e592..54c3086c2c 100644 --- a/scm-ui/ui-components/src/BranchSelector.tsx +++ b/scm-ui/ui-components/src/BranchSelector.tsx @@ -40,7 +40,7 @@ const BranchSelector: FC = ({ branches, onSelectBranch, selectedBranch, l options={branches.map(b => b.name)} optionSelected={branch => onSelectBranch(branches.filter(b => b.name === branch)[0])} disabled={!!disabled} - preselectedOption={selectedBranch && selectedBranch} + preselectedOption={selectedBranch} />