mirror of https://github.com/perkeep/perkeep.git
Clear the results in the case of a zero-item result
Change-Id: I80012c1008a21ddb992a451bc5144e3f4d3e6960
This commit is contained in:
parent
a833a2d376
commit
e8a6569744
|
@ -330,15 +330,15 @@ camlistore.BlobItemContainer.prototype.search = function(callerConstraint,
|
|||
|
||||
camlistore.BlobItemContainer.prototype.searchDone_ = function(constraint,
|
||||
reset, result) {
|
||||
if (reset) {
|
||||
this.resetChildren_();
|
||||
}
|
||||
|
||||
if (!result.blobs || !result.blobs.length) {
|
||||
console.log("Did not get any results. We must be done!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (reset) {
|
||||
this.resetChildren_();
|
||||
}
|
||||
|
||||
this.appendChildren_(result);
|
||||
|
||||
var lastItem = result.description.meta[
|
||||
|
|
Loading…
Reference in New Issue