revert element key bug

This commit is contained in:
plebbitor
2023-03-28 11:23:27 +02:00
parent acb90e244e
commit 652fbd2020
6 changed files with 43 additions and 19 deletions
+2 -2
View File
@@ -338,11 +338,11 @@ const Catalog = () => {
loadMore={tryLoadMore}
hasMore={hasMore}
>
{feed.map((thread, index) => {
{feed.map((thread) => {
const commentMediaInfo = getCommentMediaInfo(thread);
const fallbackImgUrl = "/assets/filedeleted-res.gif";
return (
<Link style={{all: "unset", cursor: "pointer"}} key={`${index}-${thread.cid}`} to={`/${selectedAddress}/thread/${thread.cid}`} onClick={() => handleClickThread(thread.cid)}>
<Link style={{all: "unset", cursor: "pointer"}} key={`link-${thread.cid}`} to={`/${selectedAddress}/thread/${thread.cid}`} onClick={() => handleClickThread(thread.cid)}>
<div key={`thread-${thread.cid}`} className="thread">
{commentMediaInfo?.url ? (
<Fragment key="f-catalog">