Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamareebjamal committed Dec 2, 2020
1 parent 85e8bb0 commit 7dd08b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
12 changes: 1 addition & 11 deletions app/controllers/public/sessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,7 @@ export default class SessionsController extends Controller {
sort = 'starts-at';
isTrackVisible = false;
timezone = null;

constructor(...args) {
super(...args);

this.addObserver('model.session', this, 'sessionChanged');
}

@action
sessionChanged() {
this.set('preserveScrollPosition', true);
}
preserveScrollPosition = true;

@computed('model.event.startsAt', 'model.event.endsAt', 'timezone')
get allDates() {
Expand Down
5 changes: 1 addition & 4 deletions app/routes/public/sessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ export default class SessionsRoute extends Route {
});
}

const isFiltering = params.room || params.track || params.date;

return {
event : eventDetails,
session : await this.infinity.model('sessions', {
Expand All @@ -100,8 +98,7 @@ export default class SessionsRoute extends Route {
perPageParam : 'page[size]',
pageParam : 'page[number]',
store : eventDetails
}),
isFiltering
})
};
}
}

0 comments on commit 7dd08b9

Please sign in to comment.