소스 검색

fix: unique id as key

poeti8 5 년 전
부모
커밋
46e9788230
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      client/components/LinksTable.tsx

+ 1 - 1
client/components/LinksTable.tsx

@@ -134,7 +134,7 @@ const Row: FC<RowProps> = ({ index, link, setDeleteModal }) => {
 
   return (
     <>
-      <Tr key={index}>
+      <Tr key={link.id}>
         <Td {...ogLinkFlex} withFade>
           <ALink href={link.target}>{link.target}</ALink>
         </Td>