| author | |
| committer | |
| log | 6d8d39a5d18bb233497c94ff3e930ac5e70c6970 |
| tree | 63ce415de30b85b98e81d18fb6f9838d01d9e8ee |
| parent | afdfe16931d292ed5de2772ccc1afd95120ff6b2 |
- Prevent `SET_THREAD_BRANCH` dispatch unless both `activeThreadId` and `syncedBranch` exist
- Avoids updating thread-branch state without an active thread context1 files changed, 1 insertions(+), 1 deletions(-)
apps/web/src/components/BranchToolbar.tsx+1-1| ... | @@ -94,7 +94,7 @@ export default function BranchToolbar({ | ... | @@ -94,7 +94,7 @@ export default function BranchToolbar({ |
| 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", |