Repository navigation
Commit 18b9087
committed
fix: fall back to threadRef when draftId is absent in BranchToolbar
When BranchToolbar is rendered for a draft thread without a draftId prop,
selecting a branch silently discarded the user's selection due to an early
return guard. Restore the original behavior by falling back to threadRef
(which is always available) when draftId is not provided.
Applied via @cursor push command1 parent c1e7216 commit 18b9087
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 108 | + | |
112 | 109 | | |
113 | 110 | | |
114 | 111 | | |
| |||
124 | 121 | | |
125 | 122 | | |
126 | 123 | | |
| 124 | + | |
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
| |||
0 commit comments