Fix token and map editing and viewing

This commit is contained in:
Mitchell McCaffrey
2021-04-23 11:48:24 +10:00
parent 6b9665ffe8
commit a023ef61ed
6 changed files with 155 additions and 98 deletions

View File

@@ -509,14 +509,10 @@ const versions = {
if (asset.prevType === "map") {
tx.table("maps").update(asset.prevId, {
file: asset.id,
width: undefined,
height: undefined,
});
} else if (asset.prevType === "token") {
tx.table("tokens").update(asset.prevId, {
file: asset.id,
width: undefined,
height: undefined,
});
} else if (asset.prevType === "mapThumbnail") {
tx.table("maps").update(asset.prevId, { thumbnail: asset.id });