mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Merge pull request #133 from ascribe/AG-131-Show-more-for-edition-table-not-working
Ag 131 show more for edition table not working
This commit is contained in:
commit
58206a6094
@ -39,7 +39,7 @@ class EditionListActions {
|
|||||||
|
|
||||||
return Q.Promise((resolve, reject) => {
|
return Q.Promise((resolve, reject) => {
|
||||||
EditionListFetcher
|
EditionListFetcher
|
||||||
.fetch({ pieceId, page, itemsToFetch, orderBy, orderAsc, filterBy })
|
.fetch({ pieceId, page, orderBy, orderAsc, filterBy, pageSize: itemsToFetch })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res && !res.editions) {
|
if (res && !res.editions) {
|
||||||
throw new Error('Piece has no editions to fetch.');
|
throw new Error('Piece has no editions to fetch.');
|
||||||
|
Loading…
Reference in New Issue
Block a user