Skip to content

Commit

Permalink
Fix openfoodfacts#10632: Synonyms in taxonomized suggestions are broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Naruyoko committed Aug 21, 2024
1 parent 281a262 commit 28c9dd9
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 28c9dd9

Please sign in to comment.