From 3bcf7d016e11dd518913b282765eb506c3cd2e19 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Mon, 2 Feb 2026 00:57:03 +0100 Subject: [PATCH] Update module/data/fields/actionField.mjs Co-authored-by: Carlos Fernandez --- module/data/fields/actionField.mjs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/module/data/fields/actionField.mjs b/module/data/fields/actionField.mjs index d550ec5a..4cadeac4 100644 --- a/module/data/fields/actionField.mjs +++ b/module/data/fields/actionField.mjs @@ -152,14 +152,9 @@ export function ActionMixin(Base) { } get uuid() { - if ( - !( - this.item instanceof game.system.api.documents.DHItem || - this.item instanceof game.system.api.documents.DhpActor - ) - ) - return null; - return `${this.item.uuid}.${this.documentName}.${this.id}`; + const isItem = this.item instanceof game.system.api.documents.DHItem; + const isActor = this.item instanceof game.system.api.documents.DhpActor; + return isItem || isActor ? `${this.item.uuid}.${this.documentName}.${this.id}` : null; } get sheet() {