Skip to content

Commit

Permalink
Merge pull request #11397 from wellcomecollection/section-level-pages
Browse files Browse the repository at this point in the history
Use uid instead of id to check if we're on a 'sectionLevelPage'
  • Loading branch information
davidpmccormick authored Nov 13, 2024
2 parents 4b6aae2 + e1176cd commit 9140f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/webapp/pages/pages/[pageId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export const Page: FunctionComponent<Props> = ({
<VideoEmbed {...transformFeaturedVideo.value} />
) : undefined;

const sectionLevelPage = sectionLevelPages.includes(page.id);
const sectionLevelPage = sectionLevelPages.includes(page.uid);

function getBreadcrumbText(siteSection: string): string {
return isLanding
Expand Down

0 comments on commit 9140f1d

Please sign in to comment.