diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e5adbfbc..3d9796744 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/girder_annotation/girder_large_image_annotation/web_client/models/AnnotationModel.js b/girder_annotation/girder_large_image_annotation/web_client/models/AnnotationModel.js index 951a42e85..562228347 100644 --- a/girder_annotation/girder_large_image_annotation/web_client/models/AnnotationModel.js +++ b/girder_annotation/girder_large_image_annotation/web_client/models/AnnotationModel.js @@ -229,6 +229,8 @@ let AnnotationModel = AccessControlledModel.extend({ } return null; }); + } else { + this._nextFetch = null; } } if (this._inFetch !== 'centroids') { @@ -247,7 +249,9 @@ let AnnotationModel = AccessControlledModel.extend({ if (this._nextFetch) { var nextFetch = this._nextFetch; this._nextFetch = null; - nextFetch(); + if (this._pageElements !== false) { + nextFetch(); + } } } });