Skip to content

Commit

Permalink
rebased with new typings
Browse files Browse the repository at this point in the history
  • Loading branch information
jonepatr committed Jan 2, 2022
1 parent 05dd28b commit ac532e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/module/sheets/TwodsixItemSheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ export class TwodsixItemSheet extends AbstractTwodsixItemSheet {
const changes = (<Trait>this.item.data.data).changes;
const type:string = $(event.currentTarget).data("type");
if (!isNaN(idx) && type) {
changes[idx][type] = $(event.currentTarget).val();
const val = $(event.currentTarget).val() as string;
changes[idx][type] = type === "mode" ? parseInt(val, 10) : val;
this.item.update({"data.changes": changes});
}
}
Expand Down

0 comments on commit ac532e6

Please sign in to comment.