diff --git a/src/display/annotation_storage.js b/src/display/annotation_storage.js index 312643362..0a1ce895d 100644 --- a/src/display/annotation_storage.js +++ b/src/display/annotation_storage.js @@ -303,9 +303,15 @@ class AnnotationStorage { ids.push(value.annotationElementId); } } + let hash = ""; + if (ids.length) { + const h = new MurmurHash3_64(); + h.update(ids.join(",")); + hash = h.hexdigest(); + } return (this.#modifiedIds = { ids: new Set(ids), - hash: ids.join(","), + hash, }); }