summaryrefslogtreecommitdiff
path: root/source/features/restore-file.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/restore-file.tsx')
-rw-r--r--source/features/restore-file.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/restore-file.tsx b/source/features/restore-file.tsx
index e5722771..4643f72b 100644
--- a/source/features/restore-file.tsx
+++ b/source/features/restore-file.tsx
@@ -8,7 +8,7 @@ import features from '.';
import * as api from '../github-helpers/api';
import fetchDom from '../helpers/fetch-dom';
import postForm from '../helpers/post-form';
-import {getDiscussionNumber, getRepoGQL, getRepoURL, getCurrentBranch} from '../github-helpers';
+import {getConversationNumber, getRepoGQL, getRepoURL, getCurrentBranch} from '../github-helpers';
function showError(menuItem: HTMLButtonElement, error: string): void {
menuItem.disabled = true;
@@ -23,7 +23,7 @@ This value is not consistently available on the page (appears in `/files` but no
const getBaseReference = onetime(async (): Promise<string> => {
const {repository} = await api.v4(`
repository(${getRepoGQL()}) {
- pullRequest(number: ${getDiscussionNumber()!}) {
+ pullRequest(number: ${getConversationNumber()!}) {
baseRefOid
}
}