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, onClick = onRelatedMangasScreenClick,
onLongClick = null, onLongClick = null,
) )
RelatedMangas( if (state.relatedMangasSorted == null || state.relatedMangasSorted.isNotEmpty()) {
relatedMangas = state.relatedMangasSorted, RelatedMangas(
getMangaState = getMangaState, relatedMangas = state.relatedMangasSorted,
onMangaClick = onRelatedMangaClick, getMangaState = getMangaState,
onMangaLongClick = onRelatedMangaLongClick onMangaClick = onRelatedMangaClick,
) onMangaLongClick = onRelatedMangaLongClick,
)
}
} }
} }
} }