diff --git a/src/RestQuery.js b/src/RestQuery.js index 7cf8074f3e..b5bec1fbb6 100644 --- a/src/RestQuery.js +++ b/src/RestQuery.js @@ -377,7 +377,11 @@ RestQuery.prototype.handleInclude = function() { this.include = this.include.slice(1); return this.handleInclude(); }); + } else if (this.include.length > 0) { + this.include = this.include.slice(1); + return this.handleInclude(); } + return pathResponse; };