Merge pull request #1703 from mechanical-turk/master

[fix] give default value to unset
This commit is contained in:
Sacha Greif 2017-08-13 21:54:53 +09:00 committed by GitHub
commit 65282fbb6c

View file

@ -98,7 +98,7 @@ export const newMutation = ({ collection, document, currentUser, validate, conte
return newDocument;
}
export const editMutation = ({ collection, documentId, set, unset, currentUser, validate, context }) => {
export const editMutation = ({ collection, documentId, set, unset = {}, currentUser, validate, context }) => {
// console.log("// editMutation")
// console.log(collection._name)