Skip to content

Commit

Permalink
Compatibility with world-anvil-actors
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-schiehle committed Nov 26, 2021
1 parent 1a71291 commit fa258d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ export async function getCategoryFolder(category) {
if ( category.parent && !category.parent.folder ) await getCategoryFolder(category.parent);

// Check whether a Folder already exists for this Category
const folder = game.folders.find(f => f.getFlag("world-anvil", "categoryId") === category.id);
const folder = game.folders.find(f => f.data.type === "JournalEntry" && f.getFlag("world-anvil", "categoryId") === category.id);
if ( folder ) return category.folder = folder;

// Create a new Folder
Expand Down

0 comments on commit fa258d8

Please sign in to comment.