Update upgrade.js

This commit is contained in:
Mitchell McCaffrey 2021-06-24 19:14:15 +10:00
parent 94116abaf0
commit 1d1d36ecdc

View File

@ -633,7 +633,7 @@ export const versions = {
.toCollection()
.modify((state) => {
for (let id in state.tokens) {
if (!state.tokens[id]) {
if (!state.tokens[id]?.tokenId) {
continue;
}
if (!state.tokens[id].tokenId.startsWith("__default")) {