瀏覽代碼

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>