Fix variation name format to match core (https://github.com/woocommerce/woocommerce-admin/pull/1583)
This commit is contained in:
parent
79dc87b9bb
commit
732a8a4986
|
@ -84,7 +84,7 @@ export default class VariationsReportTable extends Component {
|
|||
return map( data, row => {
|
||||
const { items_sold, net_revenue, orders_count, extended_info, product_id } = row;
|
||||
const { stock_status, stock_quantity, low_stock_amount, sku } = extended_info;
|
||||
const name = get( row, [ 'extended_info', 'name' ], '' ).replace( ' - ', ' / ' );
|
||||
const name = get( row, [ 'extended_info', 'name' ], '' );
|
||||
const ordersLink = getNewPath( persistedQuery, 'orders', {
|
||||
filter: 'advanced',
|
||||
product_includes: query.products,
|
||||
|
|
|
@ -67,11 +67,9 @@ export default class StockReportTable extends Component {
|
|||
products: parent_id || id,
|
||||
} );
|
||||
|
||||
const formattedName = name.replace( ' - ', ' / ' );
|
||||
|
||||
const nameLink = (
|
||||
<Link href={ productDetailLink } type="wc-admin">
|
||||
{ formattedName }
|
||||
{ name }
|
||||
</Link>
|
||||
);
|
||||
|
||||
|
@ -84,7 +82,7 @@ export default class StockReportTable extends Component {
|
|||
return [
|
||||
{
|
||||
display: nameLink,
|
||||
value: formattedName,
|
||||
value: name,
|
||||
},
|
||||
{
|
||||
display: sku,
|
||||
|
|
Loading…
Reference in New Issue