pouya-eghbali / meteor-autoform

Meteor AutoForm fork, maintained, with tons of performance issues fixed
MIT License
9 stars 1 forks source link

Problem with Schema that contains an Array of Objects #10

Closed ziedmahdi closed 4 years ago

ziedmahdi commented 4 years ago

Consider the following Schema:

{
    clients: {
        type: Array
    },
    'clients.$': {
        type: Object
    },
    'clients.$.name': {
        type: String
    }
}

The global Blaze helper afFieldNames through an error as AutoForm.findAttribute('fields') returns: ['clients', false]. As Boolean values do not have the slice method field.slice fails.

pouya-eghbali commented 4 years ago

Thanks for the PR!