File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { cached } from '@glimmer/tracking';
4
4
5
5
import { apiAction } from '@mainmatter/ember-api-actions' ;
6
6
import { keepLatestTask , task } from 'ember-concurrency' ;
7
- import fetch from 'fetch' ;
8
7
import { alias } from 'macro-decorators' ;
9
8
import semverParse from 'semver/functions/parse' ;
10
9
@@ -135,7 +134,7 @@ export default class Version extends Model {
135
134
136
135
loadReadmeTask = keepLatestTask ( async ( ) => {
137
136
if ( this . readme_path ) {
138
- let response = await fetch ( this . readme_path ) ;
137
+ let response = await waitForPromise ( fetch ( this . readme_path ) ) ;
139
138
if ( response . status === 404 || response . status === 403 ) {
140
139
return ;
141
140
}
@@ -144,7 +143,7 @@ export default class Version extends Model {
144
143
throw new Error ( `README request for ${ this . crateName } v${ this . num } failed` ) ;
145
144
}
146
145
147
- return await response . text ( ) ;
146
+ return await waitForPromise ( response . text ( ) ) ;
148
147
}
149
148
} ) ;
150
149
You can’t perform that action at this time.
0 commit comments