Commit 75853dc
Fix branch creation condition and remove redundant null check
- Restore effectiveEnvMode === 'local' guard for canCreateBranch instead of
!isSelectingWorktreeBase, which unintentionally allowed branch creation in
worktree mode when env was locked or a worktree path was active.
- Remove redundant !parsedReference check in handleConfirm's second guard,
since the first guard already returns early when parsedReference is falsy.
Co-authored-by: Julius Marminge <juliusmarminge@users.noreply.github.com>1 parent 92462e7 commit 75853dc
File tree
2 files changed
+2
-2
lines changed- apps/web/src/components
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
0 commit comments