Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infinitePagination causes ReferenceError #572

Closed
toxsick opened this issue Jul 24, 2015 · 2 comments
Closed

infinitePagination causes ReferenceError #572

toxsick opened this issue Jul 24, 2015 · 2 comments
Assignees
Labels

Comments

@toxsick
Copy link

toxsick commented Jul 24, 2015

Hello,

when I use .infinitePagination(true) it causes a ReferenceError error when a new page is loaded:

ReferenceError: dataStore is not defined
    at http://localhost:3000/bower_components/ng-admin/build/ng-admin.min.js:17:24483
    at Array.map (native)
    at http://localhost:3000/bower_components/ng-admin/build/ng-admin.min.js:17:24467
    at processQueue (http://localhost:3000/bower_components/angular/angular.js:13300:27)
    at http://localhost:3000/bower_components/angular/angular.js:13316:27
    at Scope.$get.Scope.$eval (http://localhost:3000/bower_components/angular/angular.js:14555:28)
    at Scope.$get.Scope.$digest (http://localhost:3000/bower_components/angular/angular.js:14371:31)
    at Scope.$get.Scope.$apply (http://localhost:3000/bower_components/angular/angular.js:14660:24)
    at http://localhost:3000/bower_components/angular/angular.js:14950:22
    at completeOutstandingRequest (http://localhost:3000/bower_components/angular/angular.js:4940:10)(anonymous function) @ angular.js:11707$get @ angular.js:8628processQueue @ angular.js:13308(anonymous function) @ angular.js:13316$get.Scope.$eval @ angular.js:14555$get.Scope.$digest @ angular.js:14371$get.Scope.$apply @ angular.js:14660(anonymous function) @ angular.js:14950completeOutstandingRequest @ angular.js:4940(anonymous function) @ angular.js:5328

The request is successful, but the data is not shown in the listView.

I can reproduce this with the ng-admin-demo when I enable infinitePagination for the comment.listView.

Help?!

regards
Hannes

@fzaninotto
Copy link
Member

I confirm that I can reproduce the issue. Investigating.

@fzaninotto
Copy link
Member

Fixed now, sorry for the regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants