Skip to content

Commit bf8bdf2

Browse files
committed
fix: properly pass project branch initial value to BranchSelector
1 parent 9d1463d commit bf8bdf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/app/(frontend)/(cloud)/cloud/_components/BranchSelector

src/app/(frontend)/(cloud)/cloud/_components/BranchSelector/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export const BranchSelector: React.FC<{
139139
<Fragment>
140140
{result?.branches?.length > 0 ? (
141141
<Select
142-
initialValue={result?.defaultBranch}
142+
initialValue={initialValue ?? result?.defaultBranch}
143143
label="Branch to deploy"
144144
onMenuScrollToBottom={onMenuScrollToBottom}
145145
options={result?.branches?.map((branch) => ({

0 commit comments

Comments
 (0)