authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-17 14:27:09-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-02-17 15:12:07-08:00
log6d8d39a5d18bb233497c94ff3e930ac5e70c6970
tree63ce415de30b85b98e81d18fb6f9838d01d9e8ee
parentafdfe16931d292ed5de2772ccc1afd95120ff6b2

Guard branch sync when no active thread is selected

- Prevent `SET_THREAD_BRANCH` dispatch unless both `activeThreadId` and `syncedBranch` exist - Avoids updating thread-branch state without an active thread context

1 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;
9898
99 dispatch({99 dispatch({
100 type: "SET_THREAD_BRANCH",100 type: "SET_THREAD_BRANCH",