| ... | @@ -268,8 +268,9 @@ export default function Sidebar() { | ... | @@ -268,8 +268,9 @@ export default function Sidebar() { |
| 268 | const displayWorktreePath = orphanedWorktreePath | 268 | const displayWorktreePath = orphanedWorktreePath |
| 269 | ? formatWorktreePathForDisplay(orphanedWorktreePath) | 269 | ? formatWorktreePathForDisplay(orphanedWorktreePath) |
| 270 | : null; | 270 | : null; |
| | 271 | const canDeleteWorktree = orphanedWorktreePath !== null && threadProject !== undefined; |
| 271 | const shouldDeleteWorktree = | 272 | const shouldDeleteWorktree = |
| 272 | orphanedWorktreePath !== null && | 273 | canDeleteWorktree && |
| 273 | (await api.dialogs.confirm( | 274 | (await api.dialogs.confirm( |
| 274 | [ | 275 | [ |
| 275 | "This thread is the only one linked to this worktree:", | 276 | "This thread is the only one linked to this worktree:", |