diff --git a/plugins/git-release-manager/src/features/Patch/hooks/usePatchDryRun.tsx b/plugins/git-release-manager/src/features/Patch/hooks/usePatchDryRun.tsx index 5227399970..de3a67e874 100644 --- a/plugins/git-release-manager/src/features/Patch/hooks/usePatchDryRun.tsx +++ b/plugins/git-release-manager/src/features/Patch/hooks/usePatchDryRun.tsx @@ -352,8 +352,8 @@ export function usePatchDryRun({ * (9) Delete temp patch branch */ const deleteTempPatchBranchRes = useAsync(async () => { - abortIfError(cherryPickRes.error); - if (!cherryPickRes.value) return undefined; + abortIfError(updatedRefRes.error); + if (!updatedRefRes.value) return undefined; const { success: deletedReferenceSuccess } = await pluginApiClient.deleteRef({