From 340afd7e420b5ba2dedff2644ed4161cb4c8d68b Mon Sep 17 00:00:00 2001 From: futa-ikeda <51409893+futa-ikeda@users.noreply.github.com> Date: Wed, 13 Sep 2023 15:54:37 -0400 Subject: [PATCH] Remove accessService qp to SHARE (#1997) --- .../addon/components/search-page/component.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/osf-components/addon/components/search-page/component.ts b/lib/osf-components/addon/components/search-page/component.ts index 4f832f927b4..34a3e7b3794 100644 --- a/lib/osf-components/addon/components/search-page/component.ts +++ b/lib/osf-components/addon/components/search-page/component.ts @@ -9,7 +9,6 @@ import Intl from 'ember-intl/services/intl'; import { A } from '@ember/array'; import Store from '@ember-data/store'; import { action } from '@ember/object'; -import config from 'ember-get-config'; import Media from 'ember-responsive'; import { ShareMoreThanTenThousand } from 'ember-osf-web/models/index-card-search'; @@ -67,7 +66,6 @@ interface SearchArgs { activeFilters: Filter[]; } -const osfURL = config.OSF.url; const searchDebounceTime = 100; export default class SearchPage extends Component { @@ -220,10 +218,6 @@ export default class SearchPage extends Component { resourceTypeFilter = Object.values(ResourceTypeFilterValue).join(','); } filterQueryObject['resourceType'] = resourceTypeFilter; - // Add the accessService if we are not serving locally - if (!osfURL.includes('localhost')) { - filterQueryObject['accessService'] = osfURL; // Only fetch items from the current OSF environment - } filterQueryObject = { ...filterQueryObject, ...this.args.defaultQueryOptions }; this.filterQueryObject = filterQueryObject; const searchResult = await this.store.queryRecord('index-card-search', {