Open AmauryD opened 2 years ago
I dug a bit in the code, by changing this line it seems to work and the tests still passes. It is just a quickfix btw.
this.isObject(normalizedBaseChanges) || Array.isArray(normalizedBaseChanges)
The fix is in my fork (https://github.com/AmauryD/validated-changeset)
@AmauryD Would you like putting up a PR with your changes?
@AmauryD Would you like putting up a PR with your changes?
It is done in #179 ! 😃
Hello,
I'm trying to get a property in an array of objects. It seems that the changes are not retrieved properly with
.get()
. Sadly, I don't know enough about this library to identify the problem.Also, i didn't see examples of changeset with an array of objects in the documentation. Is it recommended ?
I made a simple reproduction test that explains the problem.
node version : 14.19.1 validated-changeset: 1.3.3
Thank you in advance.