Skip to content

Model with date field but no actual date causes error when rendering list #82

@efdee

Description

@efdee

I have a model with a date field that is not filled in. When I go to the overview of that model in Formage, I get the "Something broke" error message.

The problem is caused in views\model.jade around line 35 (in my version):

    when 'Date'
        a(href=document_url): =value.toISOString().split('T')[0]

value is not defined so the call to toISOString fails.

The actual exception stack trace points to generated\templates.js but I assume this is generated from the model.jade file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions