fix toc wrong typing
This commit is contained in:
parent
142c14c6f3
commit
717fe4aee3
@ -54,7 +54,7 @@ const computedFields: ComputedFields = {
|
||||
type: 'string',
|
||||
resolve: (doc) => doc._raw.sourceFilePath,
|
||||
},
|
||||
toc: { type: 'string', resolve: (doc) => extractTocHeadings(doc.body.raw) },
|
||||
toc: { type: 'json', resolve: (doc) => extractTocHeadings(doc.body.raw) },
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user