ember-cli-pagination icon indicating copy to clipboard operation
ember-cli-pagination copied to clipboard

page-numbers component having trouble handling a blank Array

Open jcope2013 opened this issue 10 years ago • 1 comments

for some reason, it showing page 1 then page 0 when I have no records and have a blank Ember Array, the case where I have a blank ember array is on the table search when no records are returned

records = Em.A([]);
{{page-numbers content=records}}

another case where I see the same thing is when my PagedRemoteArray returns no records and totalPages is 0

screen shot 2014-11-18 at 11 58 10 pm

jcope2013 avatar Nov 19 '14 05:11 jcope2013

this PR would help I believe https://github.com/mharris717/ember-cli-pagination/pull/32

jcope2013 avatar Nov 19 '14 05:11 jcope2013