Skip to content

Commit 06c12d6

Browse files
committed
fix(web): consume copy shortcut while panel URL loads
1 parent 682773f commit 06c12d6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/web/src/components/CommandPalette.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2307,9 +2307,10 @@ function OpenCommandPaletteDialog(props: {
23072307
}
23082308
return;
23092309
}
2310-
if (command === "thread.copyReference" && activeThreadReferenceCopyTarget !== null) {
2310+
if (command === "thread.copyReference") {
23112311
event.preventDefault();
23122312
event.stopPropagation();
2313+
if (activeThreadReferenceCopyTarget === null) return;
23132314
setOpen(false);
23142315
void copyActiveThreadReference();
23152316
return;

0 commit comments

Comments
 (0)