Merge pull request #19021 from woocommerce/fix/19017

Prevent JS error is row is missing orders column
This commit is contained in:
Claudio Sanches 2018-02-19 12:44:41 -03:00 committed by GitHub
commit 0a695f76b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {