# Preserve draft branch/worktree when update options are undefined · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/39fd14b73e06a0069bc3a95c137c84ae40a45e55)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 39fd14b73e06a0069bc3a95c137c84ae40a45e55

Requested commit: 39fd14b73e06a0069bc3a95c137c84ae40a45e55

Commit: 39fd14b73e06a0069bc3a95c137c84ae40a45e55

Tree: 189281a6ba812736d694b1aceaae70ce8c0f04bb

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Preserve draft branch/worktree when update options are undefined

- Keep existing `branch` and `worktreePath` values when `setProjectDraftThreadId` receives `undefined`
- Add a regression test covering the undefined-update case

```

## Parents

- [bd433720531dd8f2ec1619927657be431c254cb7](https://git.cafe/pingdotgg/t3code/commit/bd433720531dd8f2ec1619927657be431c254cb7?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/39fd14b73e06a0069bc3a95c137c84ae40a45e55?format=markdown)
