earlSt1 / vtt-compendium-folders

Collapsable folders in the compendium directory and folder structures inside compendiums for FoundryVTT
21 stars 18 forks source link

Attempting to duplicate a compendium results in `TypeError: pack.duplicate is not a function` #88

Closed Varriount closed 2 years ago

Varriount commented 2 years ago

Foundry Version: 0.8.8 Compendium Folders Version: 2.3.2

When attempting to duplicate a compendium placed inside a folder, an error is thrown with the following stack trace:

yes https://<snip>/modules/compendium-folders/compendium-folders.js:836
    callback https://<snip>/scripts/foundry.js:20505
    submit https://<snip>/scripts/foundry.js:20449
    _onClickButton https://<snip>/scripts/foundry.js:20412
    jQuery 2
        dispatch
        handle

This isn't too major (duplication still works if I temporarily disable Compendium Folders) but it is annoying. I'm aware that there's been a couple of changes to how indexes work across 0.8.x, so that may be the cause.

earlSt1 commented 2 years ago

Hi thanks for the report, which game system + version are you using?

Varriount commented 2 years ago

Oh! Sorry, I completely forgot to give those details.

I'm running D&D 5e, version 1.3.6

earlSt1 commented 2 years ago

Sorry i completely forgot i already had this in my test version. It should be fixed in v2.3.3 if you update