Skip to content

Commit

Permalink
temp commit for pair [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
cslzchen committed Mar 21, 2024
1 parent 098c300 commit 6b9d277
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/preprints/select/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ export default class PreprintSelectRoute extends Route {
@service store!: Store;

async model(){
const allProviders = await this.store.findAll('preprint-provider', {
adapterOptions: {'filter[allow_submissions]': 'true'},
reload: true,
});
const allProviders = await this.store.findAll('preprint-provider', {reload: true});
const submissionProviders = allProviders.filter(item => item.allowSubmissions);
return {
allProviders,
submissionProviders,
};
}
}

0 comments on commit 6b9d277

Please sign in to comment.