Skip to content

Commit

Permalink
PendingCommandsList fix multiple command cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikMatiasko committed Aug 9, 2024
1 parent 5e8bb9f commit 2f8ebfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ const PendingCommandsList = forwardRef<PendingCommandsListRefType, Props>((props
try {
setCanceling(true)

const results = selected.map((selectedHref: string) => {
const item = data.find((item: any) => item.resourceId.href === selectedHref)
const results = selected.map((selectedItem: string) => {
const item = data.find((item: any) => item.auditContext.correlationId === selectedItem)
const {
resourceId: { href, deviceId },
auditContext: { correlationId },
Expand Down Expand Up @@ -211,7 +211,7 @@ const PendingCommandsList = forwardRef<PendingCommandsListRefType, Props>((props
setSelected(selection)
}}
paginationPortalTargetId={isPage ? 'paginationPortalTarget' : undefined}
primaryAttribute='resourceId.href'
primaryAttribute='auditContext.correlationId'
rowHeight={!isPage ? 40 : 54}
unselectRowsToken={unselectRowsToken}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const PendingCommandsListPage = () => {
{
Header: _(t.initiator),
accessor: 'auditContext.userId',
Cell: ({ value }: { value: any }) => value,
Cell: ({ value }: { value: any }) => <span className='no-wrap-text'>{value}</span>,
},

{
Expand Down

0 comments on commit 2f8ebfc

Please sign in to comment.