diff --git a/plugins/woocommerce-admin/packages/components/src/table/index.js b/plugins/woocommerce-admin/packages/components/src/table/index.js index cc54315110e..4531dc2fa00 100644 --- a/plugins/woocommerce-admin/packages/components/src/table/index.js +++ b/plugins/woocommerce-admin/packages/components/src/table/index.js @@ -17,7 +17,7 @@ import { generateCSVDataFromTable, generateCSVFileName, } from '@woocommerce/csv-export'; -import { getIdsFromQuery } from '@woocommerce/navigation'; +import { getIdsFromQuery, updateQueryString } from '@woocommerce/navigation'; /** * Internal dependencies @@ -158,7 +158,10 @@ class TableCard extends Component { [ ...selectedRows, ...ids ].join( ',' ) ); } else if ( searchBy ) { - onQueryChange( searchParam )( ids.join( ',' ) ); + updateQueryString( { + filter: 'advanced', + [ searchParam ]: ids.join( ',' ), + } ); } }