-
-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
No response
Reproduction
- Create a model with a field
this.attr(() => ({}), for example:parameters: this.attr(() => {}), - Create a new instance of this model and add an attribute to this value, for example: 'model.parameters.a = 1;`
- All new instances of this model will have this new attribute
ainsideparametersby default
Describe the bug
The attr field type should create a copy of the default value to avoid modifying it by reference
Additional context
No response
Logs
No response
CodeDredd
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working