The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update group-header.tsx
Kiran Kef855c8d7c25
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/group-header.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/group-header.tsxindex 79a70b11a5..47ddf184f4 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/group-header.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/[groupSlug]/group-header.tsx@@ -23,16 +23,20 @@ import { useParams, usePathname } from "next/navigation";// Handle error when the group doesn't existsexport function GroupHeaderTitle() {+ const { program } = useProgram();const { group, loading } = useGroup();const { slug: workspaceSlug } = useWorkspace();- if (loading || !group)+ if (loading || !group || !program) {return <div className="h-7 w-32 animate-pulse rounded-md bg-neutral-200" />;+ }return (<div className="flex items-center gap-1.5"><Linkhref={`/${workspaceSlug}/program/groups`}+ aria-label="Back to groups"+ title="Back to groups"className="bg-bg-subtle hover:bg-bg-emphasis flex size-8 shrink-0 items-center justify-center rounded-lg transition-[transform,background-color] duration-150 active:scale-95"><Users className="size-4" />