diff --git a/app/components/public/side-menu.js b/app/components/public/side-menu.js index 896f368f89b..1608ba74901 100644 --- a/app/components/public/side-menu.js +++ b/app/components/public/side-menu.js @@ -24,7 +24,7 @@ export default class SideMenu extends Component { } async checkSpeakers() { - this.showSpeakers = this.showSpeakers || (await this.loader.load(`/events/${this.event.id}/speakers?fields[speaker]=id&page[size]=1&filters=${JSON.stringify(SPEAKERS_FILTER)}`)).data.length; + this.showSpeakers = this.showSpeakers || (await this.loader.load(`/events/${this.event.id}/speakers?fields[speaker]=id&page[size]=1&filter=${JSON.stringify(SPEAKERS_FILTER)}`)).data.length; } async checkSessions() { @@ -42,7 +42,7 @@ export default class SideMenu extends Component { } ] }]; - this.showSessions = this.showSessions || (await this.loader.load(`/events/${this.event.id}/sessions?fields[session]=id&page[size]=1&filters=${JSON.stringify(filters)}`)).data.length; + this.showSessions = this.showSessions || (await this.loader.load(`/events/${this.event.id}/sessions?fields[session]=id&page[size]=1&filter=${JSON.stringify(filters)}`)).data.length; } @action diff --git a/app/templates/components/public/side-menu.hbs b/app/templates/components/public/side-menu.hbs index ec460b718df..cd703864100 100644 --- a/app/templates/components/public/side-menu.hbs +++ b/app/templates/components/public/side-menu.hbs @@ -29,12 +29,12 @@ {{/if}} {{/if}} - {{#if (and this.showSessions this.isSchedulePublished)}} + {{#if (and this.isSchedulePublished this.showSessions)}} {{t 'Schedule'}} {{/if}} - {{#if (and this.showSessions this.isSchedulePublished)}} + {{#if (and this.isSchedulePublished this.showSessions)}} {{t 'Calendar'}}