Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalabbad committed Feb 17, 2025
1 parent 9270312 commit 75bd842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/app/src/entities/branches/ui/branches-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export const BranchesProvider = ({ children }: { children?: React.ReactNode }) =
const mainBranch = findSelectedBranch(branches, DEFAULT_BRANCH_NAME);
setCurrentBranch(mainBranch);
navigate("/");
} else {
setCurrentBranch(selectedBranch);
}

setCurrentBranch(selectedBranch);
}, [branches, branchInQueryString]);

if (isPending || !currentBranch) {
Expand Down

0 comments on commit 75bd842

Please sign in to comment.