Merge pull request #19021 from woocommerce/fix/19017
Prevent JS error is row is missing orders column
This commit is contained in:
commit
0a695f76b4
|
@ -29,7 +29,7 @@ jQuery( function( $ ) {
|
|||
var $row = $( this ).closest( 'tr' ),
|
||||
href = $row.find( 'a.order-view' ).attr( 'href' );
|
||||
|
||||
if ( href.length ) {
|
||||
if ( href && href.length ) {
|
||||
e.preventDefault();
|
||||
|
||||
if ( e.metaKey || e.ctrlKey ) {
|
||||
|
|
Loading…
Reference in New Issue