Skip to content

Commit 95f95b3

Browse files
committed
use category name directly
1 parent 80fa823 commit 95f95b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/converter/plugins/CategoryPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class CategoryPlugin extends ConverterComponent {
183183
for (const childCat of childCategories) {
184184
let category = categories.find((cat) => cat.title === childCat);
185185

186-
const catBoost = categorySearchBoosts[category?.title ?? -1];
186+
const catBoost = categorySearchBoosts[childCat ?? -1];
187187
if (catBoost != undefined) {
188188
child.relevanceBoost =
189189
(child.relevanceBoost ?? 1) * catBoost;

0 commit comments

Comments
 (0)