mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-06 04:44:16 +02:00
Fixed the class name display in the subclass view
This commit is contained in:
parent
e28d90fe71
commit
09a6b1480f
3 changed files with 10 additions and 7 deletions
|
|
@ -383,7 +383,8 @@ export const typeConfig = {
|
|||
{
|
||||
key: 'system.linkedClass',
|
||||
label: 'TYPES.Item.class',
|
||||
format: linkedClass => linkedClass?.name ?? 'DAGGERHEART.UI.ItemBrowser.missing'
|
||||
format: linkedClass =>
|
||||
foundry.utils.fromUuidSync(linkedClass)?.name ?? 'DAGGERHEART.UI.ItemBrowser.missing'
|
||||
},
|
||||
{
|
||||
key: 'system.spellcastingTrait',
|
||||
|
|
@ -397,7 +398,7 @@ export const typeConfig = {
|
|||
label: 'TYPES.Item.class',
|
||||
choices: async items => {
|
||||
const list = [];
|
||||
for(const item of items.filter(item => item.system.linkedClass)) {
|
||||
for (const item of items.filter(item => item.system.linkedClass)) {
|
||||
const linkedClass = await foundry.utils.fromUuid(item.system.linkedClass);
|
||||
list.push({
|
||||
value: linkedClass.uuid,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue