Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix keys issues

Julián Davidd3cc6902166c
diff --git a/apps/www/components/LaunchWeek/LaunchSection/index.tsx b/apps/www/components/LaunchWeek/LaunchSection/index.tsx
index d8baebaf8c0..df8aea9ae47 100644
--- a/apps/www/components/LaunchWeek/LaunchSection/index.tsx
+++ b/apps/www/components/LaunchWeek/LaunchSection/index.tsx
@@ -176,8 +176,9 @@ export const LaunchSection = (props: WeekDayProps) => {
{props.shipped && (
<div className="flex flex-col gap-12">
{props.articles &&
- props.articles.map((article: Article) => (
+ props.articles.map((article: Article, index) => (
<div
+ key={article.url + index}
className="
dark:bg-scale-300 rounded border bg-white
"
@@ -192,8 +193,8 @@ export const LaunchSection = (props: WeekDayProps) => {
<div className="flex flex-col gap-6 p-6 px-10 pb-10">
<h3 className="text-scale-1100 mb-2">New releases</h3>
{article.products &&
- article.products.map((product: Product) => (
- <ProductButtonListItem {...product} />
+ article.products.map((product: Product, index) => (
+ <ProductButtonListItem key={product.url + index} {...product} />
))}
</div>
</div>
@@ -202,7 +203,9 @@ export const LaunchSection = (props: WeekDayProps) => {
)}
<div className="">
{props.products &&
- props.products.map((product: Product) => <ProductButton {...product} />)}
+ props.products.map((product: Product, index) => (
+ <ProductButton key={product.url + index} {...product} />
+ ))}
</div>
</div>
</div>
diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsx
index cb2cd09eb02..6be78f3fd67 100644
--- a/apps/www/pages/launch-week/index.tsx
+++ b/apps/www/pages/launch-week/index.tsx
@@ -56,7 +56,7 @@ export default function launchweek() {
{days.map((item: WeekDayProps, i) => {
return (
<LaunchSection
- key={'launchweek-item ' + item.title}
+ key={'launchweek-item ' + (item.title || i)}
{...item}
index={i}
shippingHasStarted={shippingHasStarted}