summaryrefslogtreecommitdiffstats
path: root/client/lib/unsavedEdits.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/lib/unsavedEdits.js')
-rw-r--r--client/lib/unsavedEdits.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/lib/unsavedEdits.js b/client/lib/unsavedEdits.js
index 9c02eb84..a67d0eef 100644
--- a/client/lib/unsavedEdits.js
+++ b/client/lib/unsavedEdits.js
@@ -34,13 +34,13 @@ UnsavedEdits = {
},
has({ fieldName, docId }) {
- return Boolean(this.get({fieldName, docId}));
+ return Boolean(this.get({ fieldName, docId }));
},
set({ fieldName, docId }, value) {
const currentDoc = this._getCollectionDocument(fieldName, docId);
if (currentDoc) {
- UnsavedEditCollection.update(currentDoc._id, { $set: { value }});
+ UnsavedEditCollection.update(currentDoc._id, { $set: { value } });
} else {
UnsavedEditCollection.insert({
fieldName,
@@ -58,7 +58,7 @@ UnsavedEdits = {
},
_getCollectionDocument(fieldName, docId) {
- return UnsavedEditCollection.findOne({fieldName, docId});
+ return UnsavedEditCollection.findOne({ fieldName, docId });
},
};