The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix broken link
Steven Teyb3b3f7f90348
diff --git a/app/dub.sh/help/article/[slug]/page.tsx b/app/dub.sh/help/article/[slug]/page.tsxindex 3b19a39212..ac90be42eb 100644--- a/app/dub.sh/help/article/[slug]/page.tsx+++ b/app/dub.sh/help/article/[slug]/page.tsx@@ -1,6 +1,6 @@import SearchButton from "#/ui/content/search-button";import MaxWidthWrapper from "@/components/shared/max-width-wrapper";-import { allHelpPosts } from "contentlayer/generated";+import { HelpPost, allHelpPosts } from "contentlayer/generated";import { ChevronRight } from "lucide-react";import { notFound } from "next/navigation";import { HELP_CATEGORIES } from "#/lib/constants/content";@@ -68,11 +68,10 @@ export default async function HelpArticle({]);const relatedArticles =- (data.related &&- data.related.map(- (slug) => allHelpPosts.find((post) => post.slug === slug)!,- )) ||- [];+ ((data.related &&+ data.related+ .map((slug) => allHelpPosts.find((post) => post.slug === slug))+ .filter(Boolean)) as HelpPost[]) || [];return (<>diff --git a/content/help/what-is-a-project.mdx b/content/help/what-is-a-project.mdxindex 160181b71e..57c71a9470 100644--- a/content/help/what-is-a-project.mdx+++ b/content/help/what-is-a-project.mdx@@ -8,7 +8,6 @@ categories:- getting-started- link-managementrelated:- - project-settings- how-to-create-link- how-to-add-custom-domain- how-to-invite-teammates