| ... | ... | @@ -37,7 +37,9 @@ export default function BranchToolbar({ envMode, onEnvModeChange, envLocked }: B |
| 37 | 37 | }); |
| 38 | 38 | |
| 39 | 39 | const branches = branchesQuery.data?.branches ?? []; |
| 40 | | const isRepo = branchesQuery.data?.isRepo ?? false; |
| 40 | // Default to true while loading — showing "Initialize git" during a fetch is wrong, |
| 41 | // and worktrees are inherently git repos. |
| 42 | const isRepo = branchesQuery.data?.isRepo ?? !branchesQuery.isLoading; |
| 41 | 43 | |
| 42 | 44 | // ── Mutations ───────────────────────────────────────────────────────── |
| 43 | 45 | |