Apply suggestions from code review

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
This commit is contained in:
WBHarry 2026-04-20 22:15:13 +02:00 committed by GitHub
parent 774141a8da
commit 4800b3a943
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View file

@ -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);
}