Skip to content

Commit

Permalink
Merge pull request #223 from salmanhasni/salman-220-set-document-fix
Browse files Browse the repository at this point in the history
fixes #220 changed .remove hashMap to .delete
  • Loading branch information
StorytellerCZ authored Aug 7, 2024
2 parents 195bdac + e91a8b3 commit 693ceba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client/ground.db.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ Ground.Collection = class GroundCollection {
setDocument(doc, remove) {
doc._id = strId(doc._id);
if (remove) {
this._collection._docs._map.remove(doc._id);
this._collection._docs._map.delete(doc._id);
} else {
this._collection._docs._map.set(doc._id, EJSON.clone(doc));
}
Expand Down

0 comments on commit 693ceba

Please sign in to comment.