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
No related tags found
No related merge requests found
......@@ -67,11 +67,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