Skip to content

Commit 2fd08aa

Browse files
author
Hieu Lam - TMA
authored
fix-9121: Fix missing session when sending to server for update data (#9134)
1 parent 1f2b227 commit 2fd08aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/routes/public/cfs/edit-speaker.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default class EditSpeakerRoute extends Route {
99

1010
async model(params) {
1111
const eventDetails = this.modelFor('public');
12+
const speaker = await this.store.findRecord('speaker', params.speaker_id, { include: 'sessions' })
1213
return {
1314
event : eventDetails,
1415
forms : await eventDetails.query('customForms', {
@@ -20,7 +21,7 @@ export default class EditSpeakerRoute extends Route {
2021
sort : 'id',
2122
'page[size]' : 0
2223
}),
23-
speaker: await this.store.findRecord('speaker', params.speaker_id)
24+
speaker
2425
};
2526
}
26-
}
27+
}

0 commit comments

Comments
 (0)