From a2499698b38cb04f62d40c727e04e06d41ec4e3d Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Wed, 15 Jan 2020 13:31:27 +0100 Subject: [PATCH] removed unnecessary expression --- scm-ui/ui-components/src/BranchSelector.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} />