Won't show Related title row if nothing found

This commit is contained in:
Cuong M. Tran 2024-05-30 15:34:48 +07:00
parent 8dff9ea669
commit 6c844e9ecb
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -589,12 +589,14 @@ private fun MangaScreenSmallImpl(
onClick = onRelatedMangasScreenClick,
onLongClick = null,
)
RelatedMangas(
relatedMangas = state.relatedMangasSorted,
getMangaState = getMangaState,
onMangaClick = onRelatedMangaClick,
onMangaLongClick = onRelatedMangaLongClick
)
if (state.relatedMangasSorted == null || state.relatedMangasSorted.isNotEmpty()) {
RelatedMangas(
relatedMangas = state.relatedMangasSorted,
getMangaState = getMangaState,
onMangaClick = onRelatedMangaClick,
onMangaLongClick = onRelatedMangaLongClick,
)
}
}
}
}