From 39e4db1d46baf9d65fdcf526fe2d22ac2cb9b4bd Mon Sep 17 00:00:00 2001 From: Russell Date: Fri, 26 Aug 2022 17:50:10 -0500 Subject: [PATCH] Fix data imports throwing an error --- modules/system/overrides.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/system/overrides.js b/modules/system/overrides.js index 895a56332..54daa15ed 100644 --- a/modules/system/overrides.js +++ b/modules/system/overrides.js @@ -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}); }