# Preserve draft branch/worktree when update options are undefined · screen/t3code-personal

[View on GitCafe](https://git.cafe/screen/t3code-personal/commit/005e13089a4a8f44cb25452cb4b8d9b18184a1b7)

Repository: [screen/t3code-personal](https://git.cafe/screen/t3code-personal)

Visibility: public

Requested revision: 005e13089a4a8f44cb25452cb4b8d9b18184a1b7

Requested commit: 005e13089a4a8f44cb25452cb4b8d9b18184a1b7

Commit: 005e13089a4a8f44cb25452cb4b8d9b18184a1b7

Tree: 1d6ce8720a00f255ab05b2ac4008ed33cd2fcc89

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

- [d9cce6402ae875b24d9ddbe73866eee94ec16ddb](https://git.cafe/screen/t3code-personal/commit/d9cce6402ae875b24d9ddbe73866eee94ec16ddb?format=markdown)

[Source at this commit](https://git.cafe/screen/t3code-personal/tree/005e13089a4a8f44cb25452cb4b8d9b18184a1b7?format=markdown)
