Skip to content

Commit

Permalink
fix-9121: Fix missing session when sending to server for update data (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Hieu Lam - TMA authored Aug 17, 2023
1 parent 1f2b227 commit 2fd08aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/routes/public/cfs/edit-speaker.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default class EditSpeakerRoute extends Route {

async model(params) {
const eventDetails = this.modelFor('public');
const speaker = await this.store.findRecord('speaker', params.speaker_id, { include: 'sessions' })
return {
event : eventDetails,
forms : await eventDetails.query('customForms', {
Expand All @@ -20,7 +21,7 @@ export default class EditSpeakerRoute extends Route {
sort : 'id',
'page[size]' : 0
}),
speaker: await this.store.findRecord('speaker', params.speaker_id)
speaker
};
}
}
}

0 comments on commit 2fd08aa

Please sign in to comment.