Skip to content

Commit

Permalink
fix: Synonyms in taxonomized suggestions (#10722)
Browse files Browse the repository at this point in the history
### What

Applies the solution in [my
comment](#10632 (comment)).

### Related issue(s) and discussion
- Fixes #10632
  • Loading branch information
Naruyoko authored Aug 22, 2024
1 parent 957a99d commit 3419a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/js/product-multilingual.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ function initializeTagifyInput(el) {
then((RES) => RES.json()).
then(function (json) {
const lc = (/^\w\w:/).exec(value);
let whitelist = json.suggestions;
let whitelist = Object.values(json.matched_synonyms);
if (lc) {
whitelist = whitelist.map(function (e) {
return {"value": lc + e, "searchBy": e};
Expand Down

0 comments on commit 3419a1e

Please sign in to comment.