From cd43adf698bbe01d9dd1cd873aa16589e480b88c Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Mon, 27 Nov 2023 12:30:41 -0800
Subject: Two fixes to react-key generation (#2004)

* Fix missing react keys in ListMembers

* Fix react key construction for the posts feed
---
 src/view/com/lists/ListMembers.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/view/com/lists/ListMembers.tsx')

diff --git a/src/view/com/lists/ListMembers.tsx b/src/view/com/lists/ListMembers.tsx
index 4a25c53e6..e6afb3d3c 100644
--- a/src/view/com/lists/ListMembers.tsx
+++ b/src/view/com/lists/ListMembers.tsx
@@ -215,7 +215,7 @@ export function ListMembers({
         testID={testID ? `${testID}-flatlist` : undefined}
         ref={scrollElRef}
         data={items}
-        keyExtractor={(item: any) => item.uri || item._reactKey}
+        keyExtractor={(item: any) => item.subject?.did || item._reactKey}
         renderItem={renderItem}
         ListHeaderComponent={renderHeader}
         ListFooterComponent={Footer}
-- 
cgit 1.4.1

