authorgravatar for maria@kuuro.netmaria <maria@kuuro.net> 2026-10-04 08:21:13-03:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-04 08:21:13-03:00
logc8d7d50a73793b6c1d43ea23211e89bbd8f0c910
treeacac54ea84481d3358e281d0e96b9a18c7c83fce
parent5318d054a5eabf85308a086e2fdbef5b6cdfd0ee
signature Signed by PGP key B5690EEEBB952194

fix(web): open thread picker for unsent drafts (#15436)


1 files changed, 2 insertions(+), 2 deletions(-)

apps/web/src/components/pullRequest/PullRequestThreadLinks.tsx+2-2
...@@ -50,8 +50,8 @@ function EnabledPullRequestThreadLinks({...@@ -50,8 +50,8 @@ function EnabledPullRequestThreadLinks({
50 onPickerOpenChange,50 onPickerOpenChange,
51}: PullRequestThreadLinksProps) {51}: PullRequestThreadLinksProps) {
52 const parsed = parseChangeRequestUrl(url);52 const parsed = parseChangeRequestUrl(url);
53 const currentThreadRef = threadRef?.environmentId === environmentId ? threadRef : null;53 const thread = useThreadShell(threadRef?.environmentId === environmentId ? threadRef : null);
54 const thread = useThreadShell(currentThreadRef);54 const currentThreadRef = thread === null ? null : threadRef;
55 const linking = usePullRequestLinking(environmentId);55 const linking = usePullRequestLinking(environmentId);
56 const linkedHere = linking.isLinked(thread, url);56 const linkedHere = linking.isLinked(thread, url);
57 const relations = useEnvironmentQuery(57 const relations = useEnvironmentQuery(