Skip to content

Commit

Permalink
🐛 Add unique key for dependency row item
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 committed Nov 14, 2023
1 parent fcd2948 commit dbbb624
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/app/pages/dependencies/dependencies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export const Dependencies: React.FC = () => {
],
initialItemsPerPage: 10,
});

const {
result: { data: currentPageItems, total: totalItemCount },
isFetching,
Expand All @@ -119,6 +118,7 @@ export const Dependencies: React.FC = () => {
},
})
);
console.log("currentPageItems", currentPageItems);

const tableControls = useTableControlProps({
...tableControlState, // Includes filterState, sortState and paginationState
Expand Down Expand Up @@ -193,7 +193,7 @@ export const Dependencies: React.FC = () => {
>
{currentPageItems?.map((dependency, rowIndex) => {
return (
<Tbody key={dependency.name}>
<Tbody key={dependency.name + rowIndex}>
<Tr {...getTrProps({ item: dependency })}>
<TableRowContentWithControls
{...tableControls}
Expand Down

0 comments on commit dbbb624

Please sign in to comment.