vtt-compendium-folders
vtt-compendium-folders copied to clipboard
JS error on Foundry when create a Folder into a compendium. type - Item
Describe the bug When I crete a new folder into a compendium of type item , Foundry show a JS error. This happen only with kind of type
fic-folders.js:1474 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'insertAdjacentElement') [Detected 1 package: compendium-folders] at Function.createNewFolderButtonWithinCompendium (fic-folders.js:1474:25) at fic-folders.js:587:28 at Function._call (foundry.js:294:14) at Function.call (foundry.js:279:33) at Compendium._render (foundry.js:3117:13)
When move a new items to this compendium , the compendium show #[CF_tempEntity] When move item into directory , show #[CF_tempEntity]
To Reproduce Create a new compendium type item and add create a director into compendium
Expected behavior A clear and concise description of what you expected to happen.
Screenshots


Move Item:


Information
- FoundryVTT Version : 9.249
- Compendium Folders Version: 2.4.2
- Game System + Version :Call of Cthulhu 7ª Version: 0.7.3
- All other modules disabled? (y/n) Only enable :
- Babele 2.2.3
- Call of Cthulhu Babele Spanish 0.73.1
- libWrapper 1.12.3.0
- Translations Spanish Core 9.245.1
Best Regards
Hi, thanks for raising this. I believe its because CoC system compendiums look different to normal ones. A solution for the time being is to close + reopen the compendium and the folders will render correctly. Will work on a fix soon.
Yes, I close and open and it shows ok. Great, I'll wait for a solution. Thanks for this module :)