Fix catalog list issue when uploading
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user