diff --git a/komga/src/main/kotlin/org/gotson/komga/domain/service/MetadataLifecycle.kt b/komga/src/main/kotlin/org/gotson/komga/domain/service/MetadataLifecycle.kt index 214203678..489711cff 100644 --- a/komga/src/main/kotlin/org/gotson/komga/domain/service/MetadataLifecycle.kt +++ b/komga/src/main/kotlin/org/gotson/komga/domain/service/MetadataLifecycle.kt @@ -134,7 +134,7 @@ class MetadataLifecycle( title = patches.mostFrequent { it.title }, titleSort = patches.mostFrequent { it.titleSort }, status = patches.mostFrequent { it.status }, - genres = patches.mapNotNull { it.genres }.flatten().toSet(), + genres = patches.mapNotNull { it.genres }.flatten().toSet().ifEmpty { null }, language = patches.mostFrequent { it.language }, summary = null, readingDirection = patches.mostFrequent { it.readingDirection },