Skip to content

Commit

Permalink
fix: add missing clone
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanChanges authored Jan 3, 2025
1 parent 86d4cde commit 9e56bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ function defineMethod(name: string, keys: (keyof Schema)[], format: Formatter) {
} else if (name === 'bitset') {
schema.meta.default = 0
}
schema.meta.defaultFactory = () => schema.meta.default
schema.meta.defaultFactory = () => clone(schema.meta.default)
return schema
},
})
Expand Down

0 comments on commit 9e56bf8

Please sign in to comment.