Open pefernan opened 4 years ago
Thank you for logging issue. We will address that problem in 24 hours.
Actually I see key being supplied but it might be duplicate on the field names in your schemas causing issue:
https://github.com/aerogear/uniforms-patternfly/blob/master/src/NestField.tsx#L39
I'm not at the computer right now but we have test and sample app that I will check once back from PTO tommorow
With just quick glance I cannot replicate it. it could be that key value is override by passed props.
Tests for nest fields passing. Also nest field will have proper key. https://github.com/aerogear/uniforms-patternfly/blob/master/src/AutoFields.tsx#L27
My take is it can be schema having duplicates or there is multiple nested fields that somehow clash (and I do not see test for it.
any more info will be good
@wtrocki I forgot to paste an example! You can try to reproduce it with this schema (https://github.com/kiegroup/kogito-apps/blob/master/ui-packages/packages/task-console/server/MockData/forms/ConfirmTravel.js).
Hoe it helps!
Oh.. yes. This really helps. I will look into this tommorow
Hi
I have dropped schema into the sample app and it seems to be working for me. I have updated it for the master repository.
Master has schema so it can be checked as well in the example app.
Is there branch where I can see the the most recent update of our package? From package.json I see that there is couple libs outdated:
Dependencies we work with (kinda forced by patternfly to use latest react etc) https://github.com/aerogear/uniforms-patternfly/blob/master/examples/package.json#L13-L22
When rendering a NestField this message appeares on console:
Looks like the key prop is missing.