mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-13 22:49:51 -04:00
Fixed item shop not loading items with later letters of the alphabet, since there are now so many items.
This commit is contained in:
parent
1c691283c4
commit
9dd07b024e
1 changed files with 4 additions and 0 deletions
|
@ -102,6 +102,10 @@ module.exports = class PlayItemsModal extends ModalView
|
|||
model.comingSoon = not model.getFrontFacingStats().props.length and not _.size(model.getFrontFacingStats().stats) and not model.owned # Temp: while there are placeholder items
|
||||
@idToItem[model.id] = model
|
||||
|
||||
if itemFetcher.skip isnt 0
|
||||
# Make sure we render the newly fetched items, except the first time (when it happens automatically).
|
||||
@render()
|
||||
|
||||
if needMore
|
||||
itemFetcher.skip += PAGE_SIZE
|
||||
itemFetcher.fetch({data: {skip: itemFetcher.skip, limit: PAGE_SIZE}})
|
||||
|
|
Loading…
Reference in a new issue