Skip to content

Commit

Permalink
upcoming: [DI-22217] - minor changes: changed the key when mapping ov…
Browse files Browse the repository at this point in the history
…er AlertListingTableLabelMap, used shorthand
  • Loading branch information
santoshp210-akamai committed Dec 6, 2024
1 parent b610948 commit 087f86a
Showing 1 changed file with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,17 @@ export const AlertListing = () => {
<Table colCount={7} size="small">
<TableHead>
<TableRow>
{AlertListingTableLabelMap.map((value, idx) => {
return (
<TableSortCell
active={true}
direction={order}
handleClick={handleOrderChange}
key={idx}
label={value.label}
>
{value.colName}
</TableSortCell>
);
})}
{AlertListingTableLabelMap.map((value) => (
<TableSortCell
active={true}
direction={order}
handleClick={handleOrderChange}
key={value.label}
label={value.label}
>
{value.colName}
</TableSortCell>
))}
<TableCell actionCell />
</TableRow>
</TableHead>
Expand Down

0 comments on commit 087f86a

Please sign in to comment.