Skip to content

Commit

Permalink
feat(web): Organization pages - Show parent subpage even though stand…
Browse files Browse the repository at this point in the history
…alone theme is not set (#17096)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
RunarVestmann and kodiakhq[bot] authored Dec 2, 2024
1 parent af0d7f9 commit 53bbf0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/web/pages/s/[...slugs]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,17 @@ Component.getProps = async (context) => {
}
}

if (isStandaloneTheme) {
try {
return {
page: {
type: PageType.STANDALONE_PARENT_SUBPAGE,
props: await StandaloneParentSubpage.getProps(modifiedContext),
},
}
} catch (error) {
if (!(error instanceof CustomNextError)) {
throw error
}
}

return {
Expand Down

0 comments on commit 53bbf0f

Please sign in to comment.