Commit 1de72b6
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.1 parent c1e7216 commit 1de72b6
1 file changed
+2
-4
lines changed| 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