fix: undefined allDb in firefox (#3417)

This commit is contained in:
fourdim authored and GitHub committed 2023-07-27 16:30:09 +00:00
1 parent f591939a6a
commit 57c27e6a4b
1 file changed
+1
+1
View File
@@ -78,6 +78,7 @@ export async function tryMigrate(
} }
// run the migration // run the migration
await Promise.all( await Promise.all(
allDb &&
allDb.map(meta => { allDb.map(meta => {
if (meta.name && meta.version === 1) { if (meta.name && meta.version === 1) {
const name = meta.name; const name = meta.name;