Skip to content

Commit

Permalink
Merge pull request #165 from juanferrer/master
Browse files Browse the repository at this point in the history
3.8.2
  • Loading branch information
ClipplerBlood authored Mar 21, 2024
2 parents 6c87759 + b62ab9c commit c4df255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/item/nested-objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export async function getNestedDocument(nestedData) {
// Then name
if (!entity?.sheet) {
pack = game.packs.find(p => p.index.find(i => i.name.toLowerCase() === nestedData.name.toLowerCase()))
entity = await pack?.getDocument(i => i.name.toLowerCase() === nestedData.name.toLowerCase())
entity = await pack?.getDocument(pack.index.find(i => i.name.toLowerCase() === nestedData.name.toLowerCase())?._id)
}
method = entity ? 'FB-PACKS' : method
}
Expand Down

0 comments on commit c4df255

Please sign in to comment.