diff --git a/web/src/components/RevertPRButton/RevertPRButton.tsx b/web/src/components/RevertPRButton/RevertPRButton.tsx index b446e0fdb..29b28e25d 100644 --- a/web/src/components/RevertPRButton/RevertPRButton.tsx +++ b/web/src/components/RevertPRButton/RevertPRButton.tsx @@ -50,7 +50,7 @@ export const RevertPRButton: React.FC = ({ pullRequestMetad history.push( routes.toCODECompare({ repoPath: repoMetadata?.path as string, - diffRefs: makeDiffRefs(repoMetadata?.default_branch as string, data.branch) + diffRefs: makeDiffRefs(pullRequestMetadata?.target_branch as string, data.branch) }) ) showSuccess(getString('pr.revertBranchSuccess', { branch: data.branch }), 3000) @@ -63,7 +63,7 @@ export const RevertPRButton: React.FC = ({ pullRequestMetad history.push( routes.toCODECompare({ repoPath: repoMetadata?.path as string, - diffRefs: makeDiffRefs(repoMetadata?.default_branch as string, branchName) + diffRefs: makeDiffRefs(pullRequestMetadata?.target_branch as string, branchName) }) ) }