Skip to content

Commit 693ceba

Browse files
Merge pull request #223 from salmanhasni/salman-220-set-document-fix
fixes #220 changed .remove hashMap to .delete
2 parents 195bdac + e91a8b3 commit 693ceba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client/ground.db.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Ground.Collection = class GroundCollection {
221221
setDocument(doc, remove) {
222222
doc._id = strId(doc._id);
223223
if (remove) {
224-
this._collection._docs._map.remove(doc._id);
224+
this._collection._docs._map.delete(doc._id);
225225
} else {
226226
this._collection._docs._map.set(doc._id, EJSON.clone(doc));
227227
}

0 commit comments

Comments
 (0)