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

This commit is contained in:
maria authored and GitHub committed 2026-10-04 08:21:13 -03:00
1 parent 5318d054a5
commit c8d7d50a73
1 file changed
+2 -2
@@ -50,8 +50,8 @@ function EnabledPullRequestThreadLinks({
onPickerOpenChange,
}: PullRequestThreadLinksProps) {
const parsed = parseChangeRequestUrl(url);
const currentThreadRef = threadRef?.environmentId === environmentId ? threadRef : null;
const thread = useThreadShell(currentThreadRef);
const thread = useThreadShell(threadRef?.environmentId === environmentId ? threadRef : null);
const currentThreadRef = thread === null ? null : threadRef;
const linking = usePullRequestLinking(environmentId);
const linkedHere = linking.isLinked(thread, url);
const relations = useEnvironmentQuery(