Skip to content
Source
Sign inSign up
pingdotgg/t3code

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

Mergedmaria-rcksmerged 1 commit intomain fromrefs/pull/15436/headmerged by maria-rcks View on GitHub

Showing 1 changed file with 2 additions and 2 deletions.

x
0 of 1 viewed, 1 left
2 additions and 2 deletionsapps/web/src/components/pullRequest/PullRequestThreadLinks.tsxModified
View file
@@ -50,8 +50,8 @@
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(