Fix catalog list issue when uploading

This commit is contained in:
ZXY101
2023-09-14 13:24:10 +02:00
parent ed6b8d8b39
commit 8cf0b363ca
4 changed files with 12 additions and 11 deletions

View File

@@ -151,7 +151,7 @@ export async function processFiles(files: File[]) {
if (existingCatalog) {
await db.catalog.update(key, { manga: [...existingCatalog.manga, ...filtered] })
} else {
await db.catalog.put({ id: key, manga: filtered })
await db.catalog.add({ id: key, manga: filtered })
}
}