fix: "Undefined" shown in global search results

This commit is contained in:
Simon Lichtinghagen 2025-03-18 15:49:43 +00:00
parent 9430e3af86
commit ecf727ed69

View file

@ -585,7 +585,10 @@ frappe.search.utils = {
return score;
}
if (score == 0) {
return { score, item };
return {
score: score,
marked_string: item,
};
}
// Create Boolean mask to mark matching indices in the item string