Don't encode search text in autocompleters before stringifying it (https://github.com/woocommerce/woocommerce-admin/pull/959)
This commit is contained in:
parent
3d4ca67f89
commit
109592ebc9
|
@ -27,7 +27,7 @@ export default {
|
|||
let payload = '';
|
||||
if ( search ) {
|
||||
const query = {
|
||||
search: encodeURIComponent( search ),
|
||||
search,
|
||||
per_page: 10,
|
||||
};
|
||||
payload = stringifyQuery( query );
|
||||
|
|
|
@ -27,7 +27,7 @@ export default {
|
|||
let payload = '';
|
||||
if ( search ) {
|
||||
const query = {
|
||||
search: encodeURIComponent( search ),
|
||||
search,
|
||||
per_page: 10,
|
||||
orderby: 'count',
|
||||
};
|
||||
|
|
|
@ -28,7 +28,7 @@ export default {
|
|||
let payload = '';
|
||||
if ( search ) {
|
||||
const query = {
|
||||
search: encodeURIComponent( search ),
|
||||
search,
|
||||
per_page: 10,
|
||||
orderby: 'popularity',
|
||||
};
|
||||
|
|
|
@ -27,7 +27,7 @@ export default {
|
|||
let payload = '';
|
||||
if ( search ) {
|
||||
const query = {
|
||||
search: encodeURIComponent( search ),
|
||||
search,
|
||||
per_page: 10,
|
||||
};
|
||||
payload = stringifyQuery( query );
|
||||
|
|
|
@ -43,7 +43,7 @@ export default {
|
|||
let payload = '';
|
||||
if ( search ) {
|
||||
const query = {
|
||||
search: encodeURIComponent( search ),
|
||||
search,
|
||||
per_page: 10,
|
||||
};
|
||||
payload = stringifyQuery( query );
|
||||
|
|
Loading…
Reference in New Issue