Skip to content

Commit 3ba0bf5

Browse files
committed
Avoid resetting the "base" branch each time the status updates
1 parent 5542797 commit 3ba0bf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/NewBranchDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export class NewBranchDialog extends React.Component<
271271
private _syncState(): void {
272272
const repo = this.props.model.pathRepository;
273273
this.setState({
274-
base: repo ? this.props.model.currentBranch.name : '',
274+
base: repo ? this.state.base : '',
275275
current: repo ? this.props.model.currentBranch.name : '',
276276
branches: repo ? this.props.model.branches : []
277277
});

0 commit comments

Comments
 (0)