From 2016707998ea17afdc12108e965863777654cf06 Mon Sep 17 00:00:00 2001 From: Stas Tserkovny Date: Thu, 24 Dec 2020 15:42:36 -0700 Subject: [PATCH] Fix compendium display name code. --- module/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 })[]> {