Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
dancastillo committed Jul 24, 2023
1 parent a8c4a6c commit 5a641eb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ObjectSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,7 @@ const ObjectSchema = ({ schema = initialState, ...options } = {}) => {
...schema,
[target]: [
...schema[target],
$ref
? (Object.keys(restAttributes).length ? { name, $ref, ...restAttributes } : { name, $ref })
: Object.assign({}, { name }, attributes)
$ref ? { name, $ref, ...restAttributes } : Object.assign({ name }, attributes)
]
},
...options
Expand Down

0 comments on commit 5a641eb

Please sign in to comment.