Skip to content

Commit d13320d

Browse files
authored
Updated search feed fetch. (#77)
1 parent 3b68da6 commit d13320d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: assets/js/module/search.mjs

+5-3
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,11 @@ export class PackageSearch {
394394
_fetchFeed() {
395395
fetch(this.feed)
396396
.then(response => response.json())
397-
.then(() => console.log('Search feed fetched'))
398-
.then(data => this.packages = data)
399-
.then(() => console.log('Search feed loaded'))
397+
.then(data => {
398+
console.log('Search feed fetched');
399+
this.packages = data;
400+
console.log('Search feed loaded');
401+
})
400402
.catch(err => console.warn('Failed to load search feed:', err));
401403
console.log('Fetching search feed');
402404
}

0 commit comments

Comments
 (0)