From dc06410fc4cb4fef4326e464ebad3af9e26fafde Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 29 Aug 2024 16:34:15 +0530 Subject: [PATCH] fix(common): set item keys in comments page --- .../dev/msfjarvis/claw/common/comments/CommentsPageImpl.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentsPageImpl.kt b/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentsPageImpl.kt index 638abb32..380a3939 100644 --- a/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentsPageImpl.kt +++ b/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentsPageImpl.kt @@ -80,7 +80,7 @@ internal fun CommentsPageInternal( } if (commentNodes.isNotEmpty()) { - item { + item(key = "comments_header") { Text( text = "Comments", 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 { item { Text(