Skip to content

Commit 5c0231d

Browse files
Fix Genres (VueJs) (#680)
1 parent f72c2fd commit 5c0231d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/vue/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const bookshop = new Vue({
4848
bookshop.fetchReviews(v && "?$search=" + v),
4949

5050
async fetchBooks(etc = "") {
51-
const { data } = await GET(`/Books?$expand=author,genre,currency${etc}`);
51+
const { data } = await GET(`/Books?$expand=author,genre($select=ID,name),currency${etc}`);
5252
bookshop.books = data.value;
5353
},
5454

0 commit comments

Comments
 (0)