Skip to content

Commit e08f56f

Browse files
committed
fix(web): a failed pull request hover no longer fails the click that opens it
1 parent a65a186 commit e08f56f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/web/src/components/pullRequest/PullRequestLinkPreview.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ export function PullRequestLinkPreview({
5757
})
5858
: null,
5959
);
60+
// The hover card shares this query; refreshing keeps a failed hover from failing the click.
6061
const readPreview = useAtomQueryRunner(pullRequestEnvironment.preview, {
6162
reportFailure: false,
6263
reportDefect: false,
64+
refresh: true,
6365
});
6466
const trigger =
6567
confirmBeforeOpen === true

0 commit comments

Comments
 (0)