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

Crash when trying to add new document #28

Open
drpepper opened this issue Dec 14, 2015 · 0 comments
Open

Crash when trying to add new document #28

drpepper opened this issue Dec 14, 2015 · 0 comments

Comments

@drpepper
Copy link

I cannot add documents for certain models that contain references. The error looks like this:

TypeError: .../node_modules/sriracha-admin/lib/views/fields/ref.jade:17
    13|                     - var ref = value
    14|                     li
  > 15|                         a.btn.btn-success(href=appPath + '/' + ref._collectionName + '/' + ref)
    16|                             | #{ref}
    17|     if errors[path]
    18|         span.help-block.text-danger= errors[path].message

Cannot read property '_collectionName' of undefined
    at eval (eval at <anonymous> (/Users/himmelattack/projects/cri/IdeaWeave/server/node_modules/jade/lib/index.js:218:8), <anonymous>:846:61)

I can gather than value must be undefined, leading to ref being undefined as well, but my understanding drops off after that.

Can someone please help?

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