Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update page-client.tsx

Tim Wilson6b3892d613f2
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/programs/[programId]/branding/elements/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/programs/[programId]/branding/elements/page-client.tsx
index 96c810b4e3..815e01bc44 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/programs/[programId]/branding/elements/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/programs/[programId]/branding/elements/page-client.tsx
@@ -223,10 +223,10 @@ function LanderPreview({ program }: { program: ProgramWithLanderDataProps }) {
{/* Content blocks */}
<div className="relative z-0 mt-6 grid grid-cols-1">
- {landerData.blocks.map((block, idx) => {
+ {landerData.blocks.map((block) => {
const Component = BLOCK_COMPONENTS[block.type];
return Component ? (
- <div key={idx} className="group relative py-10">
+ <div key={block.id} className="group relative py-10">
<EditIndicatorGrid />
{/* Edit toolbar */}