fix(common): set item keys in comments page

This commit is contained in:
Harsh Shandilya 2024-08-29 16:34:15 +05:30
parent 7b78438385
commit dc06410fc4

View file

@ -80,7 +80,7 @@ internal fun CommentsPageInternal(
} }
if (commentNodes.isNotEmpty()) { if (commentNodes.isNotEmpty()) {
item { item(key = "comments_header") {
Text( Text(
text = "Comments", text = "Comments",
style = MaterialTheme.typography.labelLarge, style = MaterialTheme.typography.labelLarge,
@ -88,7 +88,9 @@ internal fun CommentsPageInternal(
) )
} }
commentNodes.forEach { node -> item { Node(node, htmlConverter, openUserProfile) } } commentNodes.forEach { node ->
item(key = node.comment.shortId) { Node(node, htmlConverter, openUserProfile) }
}
} else { } else {
item { item {
Text( Text(