File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
app/[locale]/(user)/publishers/organization/[organizationSlug] Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { Metadata } from 'next';
22import { graphql } from '@/gql' ;
33
44import { GraphQL } from '@/lib/api' ;
5- import { generatePageMetadata } from '@/lib/utils' ;
5+ import { extractPublisherId , generatePageMetadata } from '@/lib/utils' ;
66import OrgPageClient from './OrgPageClient' ;
77
88const orgDataQuery = graphql ( `
@@ -23,7 +23,11 @@ export async function generateMetadata({
2323} : {
2424 params : { organizationSlug : string } ;
2525} ) : Promise < Metadata > {
26- const data = await GraphQL ( orgDataQuery , { } , { id : params . organizationSlug } ) ;
26+ const data = await GraphQL (
27+ orgDataQuery ,
28+ { } ,
29+ { id : extractPublisherId ( params . organizationSlug ) }
30+ ) ;
2731
2832 const org = data . organization ;
2933
@@ -59,5 +63,9 @@ export default function OrgPage({
5963} : {
6064 params : { organizationSlug : string } ;
6165} ) {
62- return < OrgPageClient organizationSlug = { params . organizationSlug } /> ;
66+ return (
67+ < OrgPageClient
68+ organizationSlug = { extractPublisherId ( params . organizationSlug ) }
69+ />
70+ ) ;
6371}
You can’t perform that action at this time.
0 commit comments