Commit e638bb7
fix: TypeScript error in branch name lookup for dropdown
Fixed type error by separating the lookup of realtimeRepo (RepoStatus)
and reconciledRepo (ReconciledRepo) to avoid accessing .branch property
on a union type where one variant doesn't have that property.
Now properly checks realtimeRepo.currentActiveBranch first, then falls
back to reconciledRepo.currentActiveBranch, and finally to the deprecated
reconciledRepo.branch property.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 9412ff1 commit e638bb7
File tree
1 file changed
+10
-4
lines changed- components/frontend/src/app/projects/[name]/sessions/[sessionName]
1 file changed
+10
-4
lines changedLines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1661 | 1661 | | |
1662 | 1662 | | |
1663 | 1663 | | |
1664 | | - | |
1665 | | - | |
| 1664 | + | |
| 1665 | + | |
1666 | 1666 | | |
1667 | | - | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
1668 | 1671 | | |
1669 | 1672 | | |
1670 | 1673 | | |
1671 | 1674 | | |
1672 | 1675 | | |
1673 | | - | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
1674 | 1680 | | |
1675 | 1681 | | |
1676 | 1682 | | |
| |||
0 commit comments