Skip to content

Commit

Permalink
Depending on timing, annotations could be inappropriately paged.
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Oct 20, 2022
1 parent c9e8d46 commit 140f6bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Bug Fixes
- Fixed overcaching annotations ([#983](../../pull/983))
- Depending on timing, annotations could be inappropriately paged ([#984](../../pull/984))

## 1.17.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ let AnnotationModel = AccessControlledModel.extend({
}
return null;
});
} else {
this._nextFetch = null;
}
}
if (this._inFetch !== 'centroids') {
Expand All @@ -247,7 +249,9 @@ let AnnotationModel = AccessControlledModel.extend({
if (this._nextFetch) {
var nextFetch = this._nextFetch;
this._nextFetch = null;
nextFetch();
if (this._pageElements !== false) {
nextFetch();
}
}
}
});
Expand Down

0 comments on commit 140f6bd

Please sign in to comment.