Fix error in db upgrade
This commit is contained in:
parent
491bd8c467
commit
94116abaf0
@ -633,6 +633,9 @@ export const versions = {
|
|||||||
.toCollection()
|
.toCollection()
|
||||||
.modify((state) => {
|
.modify((state) => {
|
||||||
for (let id in state.tokens) {
|
for (let id in state.tokens) {
|
||||||
|
if (!state.tokens[id]) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (!state.tokens[id].tokenId.startsWith("__default")) {
|
if (!state.tokens[id].tokenId.startsWith("__default")) {
|
||||||
const token = tokens.find(
|
const token = tokens.find(
|
||||||
(token) => token.id === state.tokens[id].tokenId
|
(token) => token.id === state.tokens[id].tokenId
|
||||||
|
Loading…
Reference in New Issue
Block a user