Run lint fix on action areas PR (#1820)

This commit is contained in:
Carlos Fernandez 2026-04-21 00:13:18 -04:00 committed by GitHub
parent f348b64aae
commit c57266e596
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 72 additions and 66 deletions

View file

@ -40,10 +40,8 @@ export default class DHActionSettingsConfig extends DHActionBaseConfig {
this.sheetUpdate(data, effectData);
this.effects = [...this.effects, effectData];
if(areaIndex !== undefined)
data.area[areaIndex].effects.push(effectData.id);
else
data.effects.push({ _id: effectData.id });
if (areaIndex !== undefined) data.area[areaIndex].effects.push(effectData.id);
else data.effects.push({ _id: effectData.id });
this.constructor.updateForm.bind(this)(null, null, { object: foundry.utils.flattenObject(data) });
}
@ -62,7 +60,6 @@ export default class DHActionSettingsConfig extends DHActionBaseConfig {
this.constructor.removeElement.call(this, event, button);
}
this.sheetUpdate(
this.action.toObject(),
this.effects.find(x => x.id === effectId),