eisenbraun / columns

A jQuery plugin that converts JSON data into searchable, sortable, HTML tables
http://eisenbraun.github.io/columns
MIT License
105 stars 47 forks source link

Error when using the showRows parameter #32

Open sbe1 opened 3 years ago

sbe1 commented 3 years ago

My result rows are greater than 50, but when I use the showRows option, I get this error:

jquery-3.5.1.min.js:2 jQuery.Deferred exception: Cannot use 'in' operator to search for 'length' in 50 TypeError: Cannot use 'in' operator to search for 'length' in 50 at p (https://patentory.com/static/js/jquery-3.5.1.min.js:2:1077) at Function.each (https://patentory.com/static/js/jquery-3.5.1.min.js:2:2937) at i (https://patentory.com/static/js/columns/js/jquery.columns.min.js:9:2682) at t.create (https://patentory.com/static/js/columns/js/jquery.columns.min.js:9:3166) at t.init (https://patentory.com/static/js/columns/js/jquery.columns.min.js:9:5055) at new t (https://patentory.com/static/js/columns/js/jquery.columns.min.js:9:5125) at HTMLDivElement. (https://patentory.com/static/js/columns/js/jquery.columns.min.js:9:434) at Function.each (https://patentory.com/static/js/jquery-3.5.1.min.js:2:2976) at S.fn.init.each (https://patentory.com/static/js/jquery-3.5.1.min.js:2:1454) at S.fn.init.e.fn.columns (https://patentory.com/static/js/columns/js/jquery.columns.min.js:9:372) undefined

If I remove the showRows option, it works fine and displays the default 5 rows. When I select 50 rows from the ui menu it also works properly.