File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/compiler/contentModel Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const findLinkedEntry = (contentModel, link) => {
3232
3333 for ( const categorySlug of link . categorySlugs ) {
3434 const categorySlugRe = new RegExp ( categorySlug , 'i' )
35- const category = container . categories ?. find ( c => c . slug . match ( categorySlugRe ) )
35+ const category = container . subtree . categories ?. find ( c => c . slug . match ( categorySlugRe ) )
3636 if ( ! category ) {
3737 break
3838 }
@@ -46,12 +46,12 @@ const findLinkedEntry = (contentModel, link) => {
4646 if ( node . slug ?. match ( entrySlugRe ) ) {
4747 return node
4848 }
49- const match = node . levelPosts ?. find ( p => p . slug . match ( entrySlugRe ) )
49+ const match = node . subtree . levelPosts ?. find ( p => p . slug . match ( entrySlugRe ) )
5050 if ( match ) {
5151 return match
5252 }
53- if ( node . categories ) {
54- queue . push ( ...node . categories )
53+ if ( node . subtree . categories ) {
54+ queue . push ( ...node . subtree . categories )
5555 }
5656 }
5757
You can’t perform that action at this time.
0 commit comments