earlSt1 / vtt-compendium-folders

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

Console error on startup #145

Closed rverboom closed 2 years ago

rverboom commented 2 years ago

On startup I see an error in the console. image

I am unable to delete world compendiums or change visibility on any compendiums. If I disable Compendium Folders it seems to work fine again.

I am using the latest stable foundry Version 9.268 Pathfinder 2e - 3.10.4.11747 And Compendium Folders 2.4.5

earlSt1 commented 2 years ago

Thats a new one. It looks like you dont have a Default folder created. Ill provide you with a macro to create you one shortly

earlSt1 commented 2 years ago

Try this as a macro then refresh the world:

let allFolders = game.settings.get('compendium-folders','cfolders');
allFolders.default = {
    compendiumList:[],
    titleText:'Default',
    _id:'default',
    colorText:'#000000'
}
await game.settings.set('compendium-folders','cfolders',allFolders);
rverboom commented 2 years ago

That seems to have gotten rid of the error and the compendium window now has stuff nicely organized.

Not sure how it got into that state, but I am sure it was me doing something...

Thanks very much for the quick help :)