Update module/data/fields/actionField.mjs

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
This commit is contained in:
WBHarry 2026-02-02 00:57:03 +01:00 committed by GitHub
parent b86d37d3bd
commit 3bcf7d016e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -152,14 +152,9 @@ export function ActionMixin(Base) {
} }
get uuid() { get uuid() {
if ( const isItem = this.item instanceof game.system.api.documents.DHItem;
!( const isActor = this.item instanceof game.system.api.documents.DhpActor;
this.item instanceof game.system.api.documents.DHItem || return isItem || isActor ? `${this.item.uuid}.${this.documentName}.${this.id}` : null;
this.item instanceof game.system.api.documents.DhpActor
)
)
return null;
return `${this.item.uuid}.${this.documentName}.${this.id}`;
} }
get sheet() { get sheet() {