From 4800b3a943e82f6c60716ec527baaf827b0fb2e2 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Mon, 20 Apr 2026 22:15:13 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Carlos Fernandez --- lang/en.json | 1 - module/applications/sheets-configs/action-config.mjs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lang/en.json b/lang/en.json index 3d0f9b07..3d225a82 100755 --- a/lang/en.json +++ b/lang/en.json @@ -113,7 +113,6 @@ "sectionTitle": "Areas", "shape": "Shape", "size": "Size" - }, "displayInChat": "Display in chat", "deleteTriggerTitle": "Delete Trigger", diff --git a/module/applications/sheets-configs/action-config.mjs b/module/applications/sheets-configs/action-config.mjs index 52067411..1de8f140 100644 --- a/module/applications/sheets-configs/action-config.mjs +++ b/module/applications/sheets-configs/action-config.mjs @@ -64,8 +64,7 @@ export default class DHActionConfig extends DHActionBaseConfig { const data = this.action.toObject(); data.area[areaIndex].effects.splice(index, 1); this.constructor.updateForm.bind(this)(null, null, { object: foundry.utils.flattenObject(data) }); - } - else { + } else { effectId = this.action.effects[index]._id; this.constructor.removeElement.bind(this)(event, button); }