File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,18 @@ export default class IndexRoute extends Route {
1111 return this . l10n . t ( 'Call for Speakers' ) ;
1212 }
1313
14+ getHash ( routeInfo ) {
15+ if ( ! routeInfo ) { return null }
16+ const hash = ( routeInfo . params [ 'public.cfs' ] || routeInfo . params ) ?. speaker_call_hash ;
17+ if ( hash ) { return hash }
18+ return this . getHash ( routeInfo . parent ) ;
19+ }
20+
1421 async beforeModel ( transition ) {
1522 // We don't want to process or transition in fastboot mode
1623 // Since this is only an intermediate page
1724 if ( this . fastboot . isFastBoot ) { return }
18- const hash = transition . to . params [ 'public.cfs' ] ? transition . to . params [ 'public.cfs' ] . speaker_call_hash : null ;
25+ const hash = this . getHash ( transition . to ) ;
1926 const eventDetails = this . modelFor ( 'public' ) ;
2027 const speakersCall = await eventDetails . get ( 'speakersCall' ) ;
2128 /*
You can’t perform that action at this time.
0 commit comments