We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using uniforms@1.0.0-rc.29 and uniforms-unstyled@1.0.0-rc.29 This is my schema:
uniforms@1.0.0-rc.29
uniforms-unstyled@1.0.0-rc.29
export const ArtistsSchema = new SimpleSchema({ // Artists artists: { type: [ Object ], minCount: 1, }, 'artists.$.name': { type: String, }, 'artists.$.work': { type: [ Object ], minCount: 1, maxCount: 5, }, 'artists.$.work.$.workTitle': { type: String, }, 'artists.$.work.$.medium': { type: String, }, 'artists.$.work.$.dimensions': { type: String, }, 'artists.$.work.$.year': { type: String, }, });
And my form:
<AutoForm autosave schema={ArtistsSchema} onSubmit={this.onSubmit.bind(this)} onValidate={this.onValidate.bind(this)} model={this.props.model} > <ListField name="artists"> <ListItemField name="$"> <NestField> <AutoField name="name" /> <ListField name="work"> <ListItemField name="$"> <NestField> <AutoField name="workTitle" /> <AutoField name="medium" /> <AutoField name="dimensions" /> <AutoField name="year" /> </NestField> </ListItemField> </ListField> </NestField> </ListItemField> </ListField> <ErrorsField /> </AutoForm>
I'm getting this error: Invariant Violation: Field not found in schema: "artists.0.work.artists.0.0"
Invariant Violation: Field not found in schema: "artists.0.work.artists.0.0"
Using <AutoField name="work" /> works fine tho.
<AutoField name="work" />
The text was updated successfully, but these errors were encountered:
I've looked into the component tree rendered by AutoField that renders ListField and it seems to be the same. I'll try to fix it later today.
AutoField
ListField
Sorry, something went wrong.
23e70b6
There was a problem with nesting NestField - now everything works fine. I'll also release next version (1.0.0-rc.30) later.
NestField
1.0.0-rc.30
radekmie
No branches or pull requests
I'm using
uniforms@1.0.0-rc.29
anduniforms-unstyled@1.0.0-rc.29
This is my schema:
And my form:
I'm getting this error:
Invariant Violation: Field not found in schema: "artists.0.work.artists.0.0"
Using
<AutoField name="work" />
works fine tho.The text was updated successfully, but these errors were encountered: