Skip to content

Commit cf2dfc9

Browse files
committed
Merge branch 'dev' of https://github.com/terminusdb/terminus-client into dev
2 parents fdeb16b + 6292251 commit cf2dfc9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/woql.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -822,9 +822,11 @@ WOQLQuery.prototype.setStart = function(start){
822822
}
823823

824824
WOQLQuery.prototype.addStart = function(s){
825-
if(this.hasStart("start")) this.setStart(s);
826-
var nq = {'start': [s, this.query]};
827-
this.query = nq;
825+
if(this.hasStart()) this.setStart(s);
826+
else {
827+
var nq = {'start': [s, this.query]};
828+
this.query = nq;
829+
}
828830
return this;
829831
}
830832

0 commit comments

Comments
 (0)