Skip to content

Commit 4df1d12

Browse files
fix genres
1 parent f72c2fd commit 4df1d12

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)