Skip to content

Commit

Permalink
Be less strict about data.next check
Browse files Browse the repository at this point in the history
It seems it can be either undefined or null
  • Loading branch information
sorenisanerd committed Sep 17, 2015
1 parent 22c0631 commit 6941ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angular-django-rest-resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ angular.module('djangoRESTResources', ['ng']).

var paginator = function recursivePaginator(data) {
// If there is a next page, go ahead and request it before parsing our results. Less wasted time.
if (data.next !== null) {
if (data.next != null) {
var next_config = copy(httpConfig);
next_config.params = {};
next_config.url = data.next;
Expand Down

0 comments on commit 6941ff3

Please sign in to comment.