Skip to content

Commit

Permalink
fix: avoid mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed May 26, 2019
1 parent ccbba54 commit 3ddf288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const DEFAULT = {

function createSchemaRule (rule, globalRules) {
const schema = isFunction(rule) ? { type: rule } : rule
const fields = merge(globalRules, schema)
const fields = merge({}, globalRules, schema)
return Object.assign({ ...DEFAULT.BLUEPRINT, ...fields })
}

Expand Down

0 comments on commit 3ddf288

Please sign in to comment.