Skip to content

Commit

Permalink
fixed typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonepatr committed Jan 3, 2022
1 parent 3d15245 commit 990dca8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module/entities/TwodsixActor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export default class TwodsixActor extends Actor {
_onUpdateEmbeddedDocuments(embeddedName:string, documents): void {
if (embeddedName === "ActiveEffect") {
(<ActiveEffect[]>documents).forEach((element:ActiveEffect) => {
const item = <TwodsixItem>(<TwodsixActor>element?.parent)?.items.find((itm:TwodsixItem) => (<Trait>itm.data.data).effectId === element.id);
item.update({"data.changes": element.data.changes});
const item = <TwodsixItem>(<TwodsixActor>element.parent)?.items.find((itm:TwodsixItem) => (<Trait>itm.data.data).effectId === element.id);
item?.update({"data.changes": element.data.changes});
});
}
this.render();
Expand Down

0 comments on commit 990dca8

Please sign in to comment.