Explorar o código

change-grou-id

kazutoweseek %!s(int64=2) %!d(string=hai) anos
pai
achega
cf5e96489b
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      apps/app/src/components/Admin/UserGroup/UserGroupTable.tsx

+ 1 - 2
apps/app/src/components/Admin/UserGroup/UserGroupTable.tsx

@@ -171,8 +171,7 @@ export const UserGroupTable: FC<Props> = ({
                         <button
                           className="btn btn-link btn-edit-groups text-secondary py-0"
                           type="button"
-                          // eslint-disable-next-line react/no-array-index-key
-                          key={index}
+                          key={group._id}
                           onMouseEnter={() => setHoveredIndex(index)}
                           onMouseLeave={() => setHoveredIndex(undefined)}
                         >