mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 15:03:37 +02:00
Apply suggestions from code review
Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
This commit is contained in:
parent
774141a8da
commit
4800b3a943
2 changed files with 1 additions and 3 deletions
|
|
@ -113,7 +113,6 @@
|
||||||
"sectionTitle": "Areas",
|
"sectionTitle": "Areas",
|
||||||
"shape": "Shape",
|
"shape": "Shape",
|
||||||
"size": "Size"
|
"size": "Size"
|
||||||
|
|
||||||
},
|
},
|
||||||
"displayInChat": "Display in chat",
|
"displayInChat": "Display in chat",
|
||||||
"deleteTriggerTitle": "Delete Trigger",
|
"deleteTriggerTitle": "Delete Trigger",
|
||||||
|
|
|
||||||
|
|
@ -64,8 +64,7 @@ export default class DHActionConfig extends DHActionBaseConfig {
|
||||||
const data = this.action.toObject();
|
const data = this.action.toObject();
|
||||||
data.area[areaIndex].effects.splice(index, 1);
|
data.area[areaIndex].effects.splice(index, 1);
|
||||||
this.constructor.updateForm.bind(this)(null, null, { object: foundry.utils.flattenObject(data) });
|
this.constructor.updateForm.bind(this)(null, null, { object: foundry.utils.flattenObject(data) });
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
effectId = this.action.effects[index]._id;
|
effectId = this.action.effects[index]._id;
|
||||||
this.constructor.removeElement.bind(this)(event, button);
|
this.constructor.removeElement.bind(this)(event, button);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue