-
Notifications
You must be signed in to change notification settings - Fork 21
fix: mutating of initial value object #243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: mutating of initial value object #243
Conversation
|
@sandrina-p is it good ? |
d3dbaeb to
e3224dc
Compare
|
hey @sandrina-p I dont see I noticed that workflow and local both have different eslint commands, it does not matter as such but I did make a small change to let lint workflow pass sucessfully |
|
@Girishbari did you check the CONTRIBUTING making sure you have the right setup and dependencies? Could you double check the versions 🤔 As for the lint, good catch, thank you! |
|
@Girishbari I tested locally, indeed it also fails on my side. Let me check with the team internally and we'll get back to you. Is this blocking your work right now? If so, I can release a dev version (it's like a alpha) for you to use while this is not fixed/merged |
|
Thanks @sandrina-p, this is not blocking me anyway, though I might not be able to test my changes locally before raising the PR |
|
@Girishbari so that warning in no way should affect the tests, they should all still pass, and if they fail, then we need to understand why your change made it fail :) |
0da9d3e to
7de39d1
Compare
|
hi @sandrina-p I was able to reproduce above test error in my local, upon doing RCA I found out jsonLogic coerces + and - differently For +, it return null which in turn parsed by parseFloat and gets converted to Nan I was thinking to tweak this test case mentioned https://github.com/remoteoss/json-schema-form/blob/d21c4f6387b7291c091e9485264255415ee57d2c/v0/src/tests/jsonLogic.test.js#L459C1-L460C1 though I'm little conscious about this
|
|
@Girishbari I'm quite busy at the moment, I'll get back to you later, I hope it's ok :) |




Problem
Intialvalue object getting updated from schema's default value in V0 of JSF #92


solution
removed the mutating statement present getPrefillValues to just break if no fieldName is present in initialValues
I have tested it using this changes using a local build