Skip to content

Commit

Permalink
Fix compendium display name code.
Browse files Browse the repository at this point in the history
  • Loading branch information
StasTserk committed Dec 24, 2020
1 parent ce48f93 commit 2016707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T extends BWItem>(itemType: ItemType, compendiums?: string[]): Promise<(T & {itemSource?: string })[]> {
Expand Down

0 comments on commit 2016707

Please sign in to comment.