Skip to content

Commit 1a075ad

Browse files
committed
fix: prevent ChannelPreviews with duplicate keys
1 parent 81f33ba commit 1a075ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ChannelList/ChannelList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ const UnMemoizedChannelList = <
333333
channel: item,
334334
// forces the update of preview component on channel update
335335
channelUpdateCount,
336-
key: item.id,
336+
key: item.cid,
337337
Preview,
338338
setActiveChannel,
339339
watchers,

0 commit comments

Comments
 (0)