Skip to content

Commit 209ccc9

Browse files
mansonaTurbo87
authored andcommitted
models/version: Use native fetch() function
1 parent cb15927 commit 209ccc9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/models/version.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { cached } from '@glimmer/tracking';
44

55
import { apiAction } from '@mainmatter/ember-api-actions';
66
import { keepLatestTask, task } from 'ember-concurrency';
7-
import fetch from 'fetch';
87
import { alias } from 'macro-decorators';
98
import semverParse from 'semver/functions/parse';
109

@@ -135,7 +134,7 @@ export default class Version extends Model {
135134

136135
loadReadmeTask = keepLatestTask(async () => {
137136
if (this.readme_path) {
138-
let response = await fetch(this.readme_path);
137+
let response = await waitForPromise(fetch(this.readme_path));
139138
if (response.status === 404 || response.status === 403) {
140139
return;
141140
}

0 commit comments

Comments
 (0)