Skip to content

Commit

Permalink
Fixed types
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Sep 18, 2023
1 parent 463739b commit 96f51f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Fixed populating items in the merchant not applying custom categories
- Fixed opening the item pile UI of an unlinked token preventing opening the actor's default item pile UI
- Fixed some systems that have adopted the new defined schema causing item piles having troubles figuring out item quantities
- Fixed selling items to merchants would not respect the merchant's override item type filters

## Version 2.7.12 Hotfix

Expand Down
4 changes: 3 additions & 1 deletion src/stores/item-pile-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ export default class ItemPileStore {
const items = [];
const attributes = [];

PileUtilities.getActorItems(this.actor).map(item => {
const pileData = PileUtilities.isValidItemPile(this.actor) || !this.recipient ? get(this.pileData) : get(this.recipientPileData);

PileUtilities.getActorItems(this.actor, { itemFilters: pileData.overrideItemFilters }).map(item => {
items.push(new this.ItemClass(this, item));
});

Expand Down

0 comments on commit 96f51f1

Please sign in to comment.