- 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 | activeThreadBranch, | 94 | activeThreadBranch, |
| 95 | queryBranches, | 95 | queryBranches, |
| 96 | }); | 96 | }); |
| 97 | if (!syncedBranch) return; | 97 | if (!activeThreadId || !syncedBranch) return; |
| 98 | 98 | ||
| 99 | dispatch({ | 99 | dispatch({ |
| 100 | type: "SET_THREAD_BRANCH", | 100 | type: "SET_THREAD_BRANCH", |