Fix token and map editing and viewing
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user