mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-04 11:35:17 -04:00
Fixed title and tags being empty for some search queries
This commit is contained in:
@@ -235,6 +235,10 @@ export class Search {
|
||||
if (field in match)
|
||||
positions.push(...match[field].position)
|
||||
|
||||
/* Skip field, if no highlighting is necessary */
|
||||
if (!positions.length)
|
||||
continue
|
||||
|
||||
// @ts-expect-error - @todo fix typings
|
||||
if (Array.isArray(doc[field])) {
|
||||
// @ts-expect-error - @todo fix typings
|
||||
|
||||
Reference in New Issue
Block a user