From 26ec779fcf066b3620a6f05dbe95eef71461f7f4 Mon Sep 17 00:00:00 2001 From: Dapoolp Date: Fri, 25 Jul 2025 23:14:29 +0200 Subject: [PATCH] Fixes --- module/applications/sheets/actors/character.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/applications/sheets/actors/character.mjs b/module/applications/sheets/actors/character.mjs index 965747e6..31755bca 100644 --- a/module/applications/sheets/actors/character.mjs +++ b/module/applications/sheets/actors/character.mjs @@ -261,8 +261,8 @@ export default class CharacterSheet extends DHBaseActorSheet { condition: target => getDocFromElement(target).system.inVault, callback: target => { const doc = getDocFromElement(target), - actorLoadout = doc.actor?.system.loadoutSlot ?? null; - if(actorLoadout?.available) return doc.update({ 'system.inVault': false }); + actorLoadout = doc.actor.system.loadoutSlot; + if(actorLoadout.available) return doc.update({ 'system.inVault': false }); ui.notifications.warn(game.i18n.format('DAGGERHEART.UI.Notifications.loadoutMaxReached', { max: actorLoadout.max })) } },