Skip to content

Commit

Permalink
[ML] Anomaly Detection Settings: Fix key attribute for filter list ta…
Browse files Browse the repository at this point in the history
…ble (elastic#156392)

Fixes the React dev mode warning "Warning: Each child in a list should
have a unique "key" prop." by adding a key attribute to the
`DeleteFilterListModal` component.
  • Loading branch information
walterra authored May 3, 2023
1 parent a90f4c2 commit 7a4ae72
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ function renderToolsRight(
return [
<NewFilterButton key="new_filter_list" canCreateFilter={canCreateFilter} />,
<DeleteFilterListModal
key="delete_filter_list"
canDeleteFilter={canDeleteFilter}
selectedFilterLists={selectedFilterLists}
refreshFilterLists={refreshFilterLists}
Expand Down

0 comments on commit 7a4ae72

Please sign in to comment.