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