fix: "Undefined" shown in global search results
This commit is contained in:
parent
9430e3af86
commit
ecf727ed69
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue