Minor tweaks to effect attributes (#1408)

* Minor tweaks to effect attributes

* Fix removing
This commit is contained in:
Carlos Fernandez 2025-12-12 04:36:30 -08:00 committed by GitHub
parent 00e9436fe0
commit f4dd9dc5c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -87,7 +87,7 @@ export default class DhEffectsDisplay extends HandlebarsApplicationMixin(Applica
async removeEffect(event) {
const element = event.target.closest('.effect-container');
const effects = DhEffectsDisplay.getTokenEffects();
const effect = effects.find(x => x.id === element.id);
const effect = effects.find(x => x.id === element.dataset.effectId);
await effect.delete();
this.render();
}