Explorar o código

fix: unique id as key

poeti8 %!s(int64=5) %!d(string=hai) anos
pai
achega
46e9788230
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>