Skip to content
Snippets Groups Projects
Unverified Commit 524b610f authored by github-automation-metabase's avatar github-automation-metabase Committed by GitHub
Browse files

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


Co-authored-by: default avatarNicolò Pretto <info@npretto.com>
parent bf4c39f5
No related branches found
Tags v0.51.3.4 v1.51.3.4
No related merge requests found
...@@ -67,11 +67,12 @@ export const EChartsTooltip = ({ ...@@ -67,11 +67,12 @@ export const EChartsTooltip = ({
})} })}
> >
<tbody> <tbody>
{paddedRows.map(row => { {paddedRows.map((row, i) => {
const key = row.key ?? String(i);
return !row.isSecondary ? ( return !row.isSecondary ? (
<TooltipRow {...row} /> <TooltipRow {...row} key={key} />
) : ( ) : (
<SecondaryRow {...row} /> <SecondaryRow {...row} key={key} />
); );
})} })}
</tbody> </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