Skip to content
New issue

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

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

Open
efdee opened this issue Jan 9, 2014 · 0 comments
Open

Comments

@efdee
Copy link

efdee commented Jan 9, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant