mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Run lint fix on action areas PR (#1820)
This commit is contained in:
parent
f348b64aae
commit
c57266e596
14 changed files with 72 additions and 66 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue