Fix error in db upgrade

This commit is contained in:
Mitchell McCaffrey 2021-06-24 18:58:31 +10:00
parent 491bd8c467
commit 94116abaf0

View File

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