- Prevent `SET_THREAD_BRANCH` dispatch unless both `activeThreadId` and `syncedBranch` exist - Avoids updating thread-branch state without an active thread context
Unified · Split
| @@ -94,7 +94,7 @@ export default function BranchToolbar({ · 93 unmodified lines | ||
| 94 | 94 | activeThreadBranch, |
| 95 | 95 | queryBranches, |
| 96 | 96 | }); |
| 97 | − if (!syncedBranch) return; | |
| 97 | + if (!activeThreadId || !syncedBranch) return; | |
| 98 | 98 | |
| 99 | 99 | dispatch({ |
| 100 | 100 | type: "SET_THREAD_BRANCH", |