@@ -5,7 +5,6 @@ import config from 'codecrafters-frontend/config/environment';
5
5
import scrollToTop from 'codecrafters-frontend/utils/scroll-to-top' ;
6
6
import type AuthenticatorService from 'codecrafters-frontend/services/authenticator' ;
7
7
import type CourseModel from 'codecrafters-frontend/models/course' ;
8
- import type FastbootService from 'ember-cli-fastboot/services/fastboot' ;
9
8
import type LanguageModel from 'codecrafters-frontend/models/language' ;
10
9
import type MetaDataService from 'codecrafters-frontend/services/meta-data' ;
11
10
import type Store from '@ember-data/store' ;
@@ -20,7 +19,6 @@ export default class TrackRoute extends BaseRoute {
20
19
allowsAnonymousAccess = true ;
21
20
22
21
@service declare authenticator : AuthenticatorService ;
23
- @service declare fastboot : FastbootService ;
24
22
@service declare metaData : MetaDataService ;
25
23
@service declare store : Store ;
26
24
@@ -49,12 +47,9 @@ export default class TrackRoute extends BaseRoute {
49
47
include : 'extensions,stages,language-configurations.language' ,
50
48
} ) ) as unknown as CourseModel [ ] ;
51
49
52
- // TODO: Investigate why running this in FastBoot causes a build error
53
- if ( ! this . fastboot . isFastBoot ) {
54
- ( await this . store . findAll ( 'language' , {
55
- include : 'primer-concept-group,primer-concept-group.author,primer-concept-group.concepts,primer-concept-group.concepts.author' ,
56
- } ) ) as unknown as LanguageModel [ ] ;
57
- }
50
+ ( await this . store . findAll ( 'language' , {
51
+ include : 'primer-concept-group,primer-concept-group.author,primer-concept-group.concepts,primer-concept-group.concepts.author' ,
52
+ } ) ) as unknown as LanguageModel [ ] ;
58
53
59
54
const language = this . store . peekAll ( 'language' ) . find ( ( language ) => language . slug === params . track_slug ) ! ;
60
55
0 commit comments