Merge pull request #21158 from Snuffleupagus/modifiedIds-proper-hash

Compute a "proper" hash in the `AnnotationStorage.prototype.modifiedIds` getter
This commit is contained in:
Tim van der Meij 2026-04-26 12:10:24 +02:00 committed by GitHub
commit 0d7439e856
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,
});
}