summaryrefslogtreecommitdiff
path: root/source/features/clean-issue-filters.tsx
diff options
context:
space:
mode:
authorGravatar Fregante <opensource@bfred.it> 2020-06-16 19:56:43 +0200
committerGravatar GitHub <noreply@github.com> 2020-06-16 19:56:43 +0200
commita918f9a3eb6827dd67efdd1bcf362df2e7152406 (patch)
tree4aeb0966e89ed9a641f519f8934a959a868a8823 /source/features/clean-issue-filters.tsx
parent1d003c988da53f575b0285f8366ada9b80b76510 (diff)
downloadrefined-github-a918f9a3eb6827dd67efdd1bcf362df2e7152406.tar.gz
refined-github-a918f9a3eb6827dd67efdd1bcf362df2e7152406.tar.zst
refined-github-a918f9a3eb6827dd67efdd1bcf362df2e7152406.zip
Meta: Minor improvements and lint (#3231)
Diffstat (limited to 'source/features/clean-issue-filters.tsx')
-rw-r--r--source/features/clean-issue-filters.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/clean-issue-filters.tsx b/source/features/clean-issue-filters.tsx
index ea4ad320..a6e6dcb2 100644
--- a/source/features/clean-issue-filters.tsx
+++ b/source/features/clean-issue-filters.tsx
@@ -5,14 +5,14 @@ import * as pageDetect from 'github-url-detection';
import features from '.';
import * as api from '../github-helpers/api';
-import {getOwnerAndRepo, getRepoURL, getRepoGQL} from '../github-helpers';
+import {getCurrentRepository, getRepoURL, getRepoGQL} from '../github-helpers';
const hasAnyProjects = cache.function(async (): Promise<boolean> => {
const {repository, organization} = await api.v4(`
repository(${getRepoGQL()}) {
projects { totalCount }
}
- organization(login: "${getOwnerAndRepo().ownerName!}") {
+ organization(login: "${getCurrentRepository().owner!}") {
projects { totalCount }
}
`, {