This commit is contained in:
Justin Shreve 2019-02-18 13:24:48 -05:00 committed by GitHub
parent 79dc87b9bb
commit 732a8a4986
2 changed files with 3 additions and 5 deletions

View File

@ -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,

View File

@ -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,