Skip to content

Commit

Permalink
fix: removes MissingContentError checks in getPage for the global hea…
Browse files Browse the repository at this point in the history
…der and footer cases
  • Loading branch information
eduardoformiga committed Feb 26, 2025
1 parent 16a0b9d commit 1a729b7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/core/src/server/cms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,6 @@ export const getPage = async <T extends ContentData>(options: Options) => {

const pages = result.data

if (!pages[0]) {
throw new MissingContentError(options)
}

if (pages.length > 1) {
throw new MultipleContentError(options)
}
Expand Down

0 comments on commit 1a729b7

Please sign in to comment.