Skip to content

Commit 220ac1a

Browse files
rusackasclaude
andcommitted
fix(horizon-chart): use explicit array join for React key
Replace double cast `as unknown as string` with explicit `row.key.join(',')` to properly convert the string array to a valid React key. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 41ed0cd commit 220ac1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

superset-frontend/plugins/legacy-plugin-chart-horizon/src/HorizonChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class HorizonChart extends PureComponent<HorizonChartProps> {
118118
>
119119
{data.map(row => (
120120
<HorizonRow
121-
key={row.key as unknown as string}
121+
key={row.key.join(',')}
122122
width={width}
123123
height={seriesHeight}
124124
title={ensureIsArray(row.key).join(', ')}

0 commit comments

Comments
 (0)