Skip to content

Commit

Permalink
10293: remove superfluous renderKey property from PendingItemFormatted
Browse files Browse the repository at this point in the history
  • Loading branch information
akuny committed Dec 10, 2024
1 parent 8f5b9a3 commit dd63874
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions shared/src/business/utilities/formatPendingItem.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { PendingItem } from '@web-api/business/useCases/pendingItems/fetchPendingItemsInteractor';
import { v4 as uuidv4 } from 'uuid';

export type PendingItemFormatted = {
docketEntryId: string;
Expand All @@ -15,7 +14,6 @@ export type PendingItemFormatted = {
shouldIndent: boolean;
isLeadCase: boolean;
docketNumberWithSuffix: string;
renderKey: string;
receivedAt: string;
};

Expand Down Expand Up @@ -66,7 +64,6 @@ export const formatPendingItem = (
inConsolidatedGroup: pendingItemWithConsolidatedFlags.inConsolidatedGroup,
isLeadCase: pendingItemWithConsolidatedFlags.isLeadCase,
receivedAt: item.receivedAt,
renderKey: uuidv4(),
shouldIndent: pendingItemWithConsolidatedFlags.shouldIndent,
};
};
2 changes: 1 addition & 1 deletion web-client/src/views/PendingReport/PendingReportList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const PendingReportList = connect(
{pageRecords.map(item => (
<tr
className="pending-item-row"
key={`pending-item-${item.renderKey}`}
key={`pending-item-${item.docketNumber}-${item.docketEntryId}`}
>
<td>
<ConsolidatedCaseIcon
Expand Down

0 comments on commit dd63874

Please sign in to comment.