mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-18 22:33:08 +00:00
fix: Improve error handling and state management in auto-mode and utilities
This commit is contained in:
@@ -112,6 +112,9 @@ export function CreateBranchDialog({
|
||||
if (open) {
|
||||
setBranchName('');
|
||||
setBaseBranch('');
|
||||
// Update the ref synchronously so fetchBranches() sees the cleared value
|
||||
// immediately, rather than the stale value from the previous open.
|
||||
baseBranchRef.current = '';
|
||||
setError(null);
|
||||
setBranches([]);
|
||||
setBaseBranchPopoverOpen(false);
|
||||
|
||||
Reference in New Issue
Block a user