Fix manga migration with disabled category step
Should have been included in 1f55531436
fixes #1000
This commit is contained in:
@@ -405,7 +405,7 @@ export class Mangas {
|
|||||||
migrateCategories: boolean,
|
migrateCategories: boolean,
|
||||||
removeMangaFromCategories: boolean,
|
removeMangaFromCategories: boolean,
|
||||||
): MigrateAction {
|
): MigrateAction {
|
||||||
if (!mangaToMigrateFrom?.categories) {
|
if (migrateCategories && !mangaToMigrateFrom?.categories) {
|
||||||
throw new Error('Categories are missing');
|
throw new Error('Categories are missing');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user