Skip to content

Commit

Permalink
Merge tag '24.05.1' into develop
Browse files Browse the repository at this point in the history
Hotfix allow_submissions filter
  • Loading branch information
adlius committed Jul 8, 2024
2 parents 393291b + 53ea45e commit 735a5e1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/preprints/select/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ export default class PreprintSelectRoute extends Route {
@service store!: Store;
@service theme!: Theme;

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

this.theme.set('id', config.defaultProvider);
Expand Down

0 comments on commit 735a5e1

Please sign in to comment.