diff --git a/js/server/modules/org/arangodb/foxx/model.js b/js/server/modules/org/arangodb/foxx/model.js index 6cab5a295e..f0a88b529b 100644 --- a/js/server/modules/org/arangodb/foxx/model.js +++ b/js/server/modules/org/arangodb/foxx/model.js @@ -64,7 +64,9 @@ var Model, excludeExtraAttributes = function (attributes, model) { 'use strict'; - if (!model.schema) return _.clone(attributes); + if (!model.schema) { + return _.clone(attributes); + } return _.omit(attributes, _.difference( _.keys(metadataSchema), _.keys(model.schema)