diff --git a/module/helpers.ts b/module/helpers.ts index 17361bd9..cedc9c80 100644 --- a/module/helpers.ts +++ b/module/helpers.ts @@ -122,7 +122,7 @@ export async function getItemsOfTypes(itemTypes: ItemType[], compendiums?: strin } export function compendiumName(c: Compendium): string { - return c.collection.substr(c.collection.indexOf('.')+1).replace('-', ' ').titleCase(); + return c.metadata.label; } export async function getItemsOfType(itemType: ItemType, compendiums?: string[]): Promise<(T & {itemSource?: string })[]> {