Skip to content

Commit

Permalink
Remove accessService qp to SHARE (#1997)
Browse files Browse the repository at this point in the history
  • Loading branch information
futa-ikeda authored Sep 13, 2023
1 parent 4558767 commit 340afd7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/osf-components/addon/components/search-page/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -67,7 +66,6 @@ interface SearchArgs {
activeFilters: Filter[];
}

const osfURL = config.OSF.url;
const searchDebounceTime = 100;

export default class SearchPage extends Component<SearchArgs> {
Expand Down Expand Up @@ -220,10 +218,6 @@ export default class SearchPage extends Component<SearchArgs> {
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', {
Expand Down

0 comments on commit 340afd7

Please sign in to comment.