Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Fix non-unique key props in SectionLayoutPreview (#76250)

Kevin Kelleher025cda038839
diff --git a/frontend/src/metabase/dashboard/components/DashboardHeader/SectionLayoutPreview.tsx b/frontend/src/metabase/dashboard/components/DashboardHeader/SectionLayoutPreview.tsx
index d57ba2f0b4a..cc444100516 100644
--- a/frontend/src/metabase/dashboard/components/DashboardHeader/SectionLayoutPreview.tsx
+++ b/frontend/src/metabase/dashboard/components/DashboardHeader/SectionLayoutPreview.tsx
@@ -35,9 +35,9 @@ export function SectionLayoutPreview({ layout }: SectionLayoutPreviewProps) {
return (
<Flex align="center" justify="center">
<Box pos="relative" w={WIDTH} mih={height}>
- {layoutItems.map((item) => (
+ {layoutItems.map((item, index) => (
<PreviewCard
- key={item.id}
+ key={index}
layout={item}
cellWidth={CELL_WIDTH}
cellHeight={CELL_HEIGHT}