Skip to content
Snippets Groups Projects
Unverified Commit dd068ca4 authored by Nicolò Pretto's avatar Nicolò Pretto Committed by GitHub
Browse files

enforce key prop on tooltip row in echarts tooltip (#50045)

parent 86f22667
No related branches found
No related tags found
No related merge requests found
......@@ -66,11 +66,12 @@ export const EChartsTooltip = ({
})}
>
<tbody>
{paddedRows.map(row => {
{paddedRows.map((row, i) => {
const key = row.key ?? String(i);
return !row.isSecondary ? (
<TooltipRow {...row} />
<TooltipRow {...row} key={key} />
) : (
<SecondaryRow {...row} />
<SecondaryRow {...row} key={key} />
);
})}
</tbody>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment