League-of-Foundry-Developers / compendium-browser

A module to easily browse and filter spells as well as npcs loaded from compendie
9 stars 18 forks source link

Foundry 11: Cannot filter NPCs by type #59

Open kthibodeaux opened 1 year ago

kthibodeaux commented 1 year ago

All other filter options seem to work, but filtering NPCs by type (example: fey) in Foundry 11 cause an error and do not show any results

jdwaid commented 11 months ago

I found a relatively simple fix for this. v11 stores that type info in system.details.type.value as opposed to just system.details.type if you want to change this for yourself it's on line 666 (oof) in the compendium-browser.js file change system.details.type to system.details.type.value

RoperSeiler commented 11 months ago

I found a relatively simple fix for this. v11 stores that type info in system.details.type.value as opposed to just system.details.type if you want to change this for yourself it's on line 666 (oof) in the compendium-browser.js file change system.details.type to system.details.type.value

This worked for me. Thank you so much.