based id on keyfield instead of id (#17509)
fixes: https://github.com/keycloak/keycloak-ui/issues/4484
This commit is contained in:
parent
31e4c5cb7e
commit
e2a0c0df8e
1 changed files with 2 additions and 2 deletions
|
@ -222,12 +222,12 @@ export function DraggableTable<T>({
|
||||||
>
|
>
|
||||||
<Td
|
<Td
|
||||||
draggableRow={{
|
draggableRow={{
|
||||||
id: `draggable-row-${get(row, "id")}`,
|
id: `draggable-row-${get(row, keyField)}`,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{columns.map((column) => (
|
{columns.map((column) => (
|
||||||
<Td
|
<Td
|
||||||
key={`${get(row, "id")}_${column.name}`}
|
key={`${get(row, keyField)}_${column.name}`}
|
||||||
dataLabel={column.name}
|
dataLabel={column.name}
|
||||||
>
|
>
|
||||||
{column.cellRenderer
|
{column.cellRenderer
|
||||||
|
|
Loading…
Reference in a new issue