From 6941ff33ac1a3eb952a62e31467520c8041e3408 Mon Sep 17 00:00:00 2001 From: Soren Hansen Date: Thu, 17 Sep 2015 23:21:59 +0200 Subject: [PATCH] Be less strict about data.next check It seems it can be either undefined or null --- angular-django-rest-resource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angular-django-rest-resource.js b/angular-django-rest-resource.js index d1d8f6b..17cdf75 100644 --- a/angular-django-rest-resource.js +++ b/angular-django-rest-resource.js @@ -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;