From 4d17a7d9bf5fbb03a52f875a712300846759addf Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sat, 25 Apr 2026 17:45:50 +0200 Subject: [PATCH] Fixed that new weapons couldn't be created on the Character Sheet --- module/applications/sheets/api/application-mixin.mjs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module/applications/sheets/api/application-mixin.mjs b/module/applications/sheets/api/application-mixin.mjs index 5faa5d5c..e941931a 100644 --- a/module/applications/sheets/api/application-mixin.mjs +++ b/module/applications/sheets/api/application-mixin.mjs @@ -725,7 +725,7 @@ export default function DHApplicationMixin(Base) { : null : this.document; - let systemData = {}; + let systemData = null; if (featureOnCharacter) { systemData = { originItemType: this.document.type, @@ -738,10 +738,11 @@ export default function DHApplicationMixin(Base) { const data = { name: cls.defaultName({ type, parent }), - type, - system: systemData + type }; + if (systemData) data.system = systemData; + if (inVault) data['system.inVault'] = true; if (disabled) data.disabled = true; if (type === 'domainCard' && parent?.system.domains?.length) {