Skip to content

Commit

Permalink
Fix product-auto-complete
Browse files Browse the repository at this point in the history
  • Loading branch information
mpysiak committed May 9, 2024
1 parent 29d18a3 commit c11c424
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import 'semantic-ui-css/components/dropdown';
import $ from 'jquery';
import { sanitizeInput } from "./sylius-sanitizer";

$.fn.extend({
productAutoComplete() {
Expand Down Expand Up @@ -38,8 +39,8 @@ $.fn.extend({
return {
success: true,
results: response._embedded.items.map(item => ({
name: item.name,
value: item.code,
name: sanitizeInput(item.name),
value: sanitizeInput(item.code),
})),
};
},
Expand Down

0 comments on commit c11c424

Please sign in to comment.