diff --git a/public/static/admin/default/js/goods.js b/public/static/admin/default/js/goods.js index cca761e5f..8f5da0381 100755 --- a/public/static/admin/default/js/goods.js +++ b/public/static/admin/default/js/goods.js @@ -300,7 +300,7 @@ $(function() { value = 1; } - var spec_count = $('.specifications-table th.table-title').length || 0; + var spec_count = $('.specifications-table th.table-title').length || 1; if(value > spec_count) { value = spec_count;