Skip to content

Commit

Permalink
Update src/utils/content/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Farnabaz <[email protected]>
  • Loading branch information
harlan-zw and farnabaz authored Dec 24, 2024
1 parent 9d6a457 commit 7c82ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/content/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export async function createParser(collection: ResolvedCollection, nuxt?: Nuxt)
const result = { id } as typeof collection.extendedSchema._type
const meta = {} as Record<string, unknown>

const collectionKeys = Object.keys(hookedCollection.extendedSchema.shape)
const collectionKeys = Object.keys(collection.extendedSchema.shape)
for (const key of Object.keys(parsedContentFields)) {
if (collectionKeys.includes(key)) {
result[key] = parsedContent[key]
Expand Down

0 comments on commit 7c82ec1

Please sign in to comment.