Update character.mjs (#455)

This commit is contained in:
Cyril ALFARO 2025-07-29 16:52:29 +02:00 committed by GitHub
parent 253faabbcf
commit 2608c4a5ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -260,7 +260,7 @@ export default class CharacterSheet extends DHBaseActorSheet {
icon: 'fa-solid fa-arrow-up',
condition: target => {
const doc = getDocFromElementSync(target);
return doc && system.inVault;
return doc && doc.system.inVault;
},
callback: async target => {
const doc = await getDocFromElement(target);