Просмотр исходного кода

Refs #2378: fixed $group when no incoming docs

Kyle P Davis 13 лет назад
Родитель
Сommit
788885dcc7
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/pipeline/documentSources/GroupDocumentSource.js

+ 1 - 1
lib/pipeline/documentSources/GroupDocumentSource.js

@@ -173,7 +173,7 @@ proto.advance = function advance() {
 	//verify(this.currentGroupsKeysIndex < this.groupsKeys.length);
 	//verify(this.currentGroupsKeysIndex < this.groupsKeys.length);
 
 
 	++this.currentGroupsKeysIndex;
 	++this.currentGroupsKeysIndex;
-	if (this.currentGroupsKeysIndex === this.groupsKeys.length) {
+	if (this.currentGroupsKeysIndex >= this.groupsKeys.length) {
 		this.currentDocument = null;
 		this.currentDocument = null;
 		return false;
 		return false;
 	}
 	}