mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[dashboard] fix 'Each child in list should have a unique key prop' warning in PresentationPanelHeader (#187118)
Fixes
<img width="600" alt="Screenshot 2024-06-27 at 2 47 07 PM"
src="44d0162c
-ae6f-4995-a780-711ff59727a8">
### test steps
* in cloud 7.17. instance, create legacy input control visualization and
export saved object
* in local instance, import legacy input control vis
* create new dashboard and add legacy input control vis
* Open console and ensure no warnings are displayed when `deprecated`
badge is displayed
---------
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
125b716fa9
commit
3bc6973019
1 changed files with 3 additions and 1 deletions
|
@ -141,7 +141,9 @@ export const usePresentationPanelHeaderActions = <
|
|||
);
|
||||
|
||||
return tooltipText ? (
|
||||
<EuiToolTip content={tooltipText}>{badgeElement}</EuiToolTip>
|
||||
<EuiToolTip key={badge.id} content={tooltipText}>
|
||||
{badgeElement}
|
||||
</EuiToolTip>
|
||||
) : (
|
||||
badgeElement
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue