ソースを参照

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>