fix toc wrong typing
This commit is contained in:
1 parent
142c14c6f3
commit
717fe4aee3
1 file changed
+1
-1
@@ -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) },
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user