Skip to content

Commit

Permalink
Fix data imports throwing an error
Browse files Browse the repository at this point in the history
  • Loading branch information
moo-man committed Aug 26, 2022
1 parent 65ddb87 commit 39e4db1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/system/overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export default function () {
function WFRP4eImportFromJson(json) {
const data = JSON.parse(json);
delete data._id
if (prototypeToken)
delete prototypeToken.actorId
if (data.prototypeToken)
delete data.prototypeToken.actorId
this.updateSource(data, {recursive: false});
return this.update(this.toJSON(), {diff: false, recursive: false});
}
Expand Down

0 comments on commit 39e4db1

Please sign in to comment.