Skip to content

Commit

Permalink
[test-studio] Fix accessed view options on wrong key
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Sep 18, 2017
1 parent d745a58 commit 3964be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/test-studio/schemas/book.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default {
},
prepare(book, options = {}) {
return Object.assign({}, book, {
title: ((options.sorting || {}).name === 'swedishTitle' && (book.translations || {}).se) || book.title,
title: ((options.ordering || {}).name === 'swedishTitle' && (book.translations || {}).se) || book.title,
subtitle: formatSubtitle(book)
})
}
Expand Down

0 comments on commit 3964be1

Please sign in to comment.