diff --git a/dist/ng-table.js b/dist/ng-table.js index cbad7c7e..cabd7208 100644 --- a/dist/ng-table.js +++ b/dist/ng-table.js @@ -1152,7 +1152,7 @@ currentPages = newPages; ngTableEventsChannel.publishPagesChanged(this, newPages, oldPages); - if (self.data.length === 0 && self.total() > 0) { + if (self.data && self.data.length === 0 && self.total() > 0) { self.page(self.page() - 1); } }