diff --git a/wp/wp-content/themes/phila.gov-theme/js/dev/hide-empty-table.js b/wp/wp-content/themes/phila.gov-theme/js/dev/hide-empty-table.js index 38703c300..330d8de1d 100644 --- a/wp/wp-content/themes/phila.gov-theme/js/dev/hide-empty-table.js +++ b/wp/wp-content/themes/phila.gov-theme/js/dev/hide-empty-table.js @@ -8,7 +8,7 @@ $('table.js-hide-empty').each(function(i, obj) { var tds = $(this).parents('table').find('tr td:nth-child(' + (i + 1) + ')'); tds.each(function(j) { - if (this.innerHTML == '') remove++; + if (this.innerHTML.trim() == '') remove++; if (this.innerHTML == ' ') remove++; if (this.innerHTML == 'Description: ') remove++; });