based id on keyfield instead of id (#17509)

fixes: https://github.com/keycloak/keycloak-ui/issues/4484
This commit is contained in:
Erik Jan de Wit 2023-03-09 12:36:35 +01:00 committed by GitHub
parent 31e4c5cb7e
commit e2a0c0df8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -222,12 +222,12 @@ export function DraggableTable<T>({
>
<Td
draggableRow={{
id: `draggable-row-${get(row, "id")}`,
id: `draggable-row-${get(row, keyField)}`,
}}
/>
{columns.map((column) => (
<Td
key={`${get(row, "id")}_${column.name}`}
key={`${get(row, keyField)}_${column.name}`}
dataLabel={column.name}
>
{column.cellRenderer