Skip to content

Exception on array types #497

Closed
Closed
@vicary

Description

@vicary

I have initiated the form scope with an empty object {}, one of it's properties are of array type with simple string as items.

When I click on the "Add" button it returns the follow error,

TypeError: Cannot read property 'length' of undefined
    at n.angular.module.directive.link.scope.$watch.scope.appendToArray (/assets/scripts/schema-form.js:1587:27)

Inspecting list and scope.modelArray shows an empty array during form initialize, but list.length loses reference and turns into undefined in line 1587 appendToArray().

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions