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,15 +589,17 @@ private fun MangaScreenSmallImpl(
onClick = onRelatedMangasScreenClick, onClick = onRelatedMangasScreenClick,
onLongClick = null, onLongClick = null,
) )
if (state.relatedMangasSorted == null || state.relatedMangasSorted.isNotEmpty()) {
RelatedMangas( RelatedMangas(
relatedMangas = state.relatedMangasSorted, relatedMangas = state.relatedMangasSorted,
getMangaState = getMangaState, getMangaState = getMangaState,
onMangaClick = onRelatedMangaClick, onMangaClick = onRelatedMangaClick,
onMangaLongClick = onRelatedMangaLongClick onMangaLongClick = onRelatedMangaLongClick,
) )
} }
} }
} }
}
// KMK <-- // KMK <--
// SY --> // SY -->