Don't encode search text in autocompleters before stringifying it (https://github.com/woocommerce/woocommerce-admin/pull/959)

This commit is contained in:
Albert Juhé Lluveras 2018-11-29 19:00:51 -06:00 committed by GitHub
parent 3d4ca67f89
commit 109592ebc9
5 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ export default {
let payload = '';
if ( search ) {
const query = {
search: encodeURIComponent( search ),
search,
per_page: 10,
};
payload = stringifyQuery( query );

View File

@ -27,7 +27,7 @@ export default {
let payload = '';
if ( search ) {
const query = {
search: encodeURIComponent( search ),
search,
per_page: 10,
orderby: 'count',
};

View File

@ -28,7 +28,7 @@ export default {
let payload = '';
if ( search ) {
const query = {
search: encodeURIComponent( search ),
search,
per_page: 10,
orderby: 'popularity',
};

View File

@ -27,7 +27,7 @@ export default {
let payload = '';
if ( search ) {
const query = {
search: encodeURIComponent( search ),
search,
per_page: 10,
};
payload = stringifyQuery( query );

View File

@ -43,7 +43,7 @@ export default {
let payload = '';
if ( search ) {
const query = {
search: encodeURIComponent( search ),
search,
per_page: 10,
};
payload = stringifyQuery( query );