[openstreetmap/openstreetmap-website] Raise error when note has no comments (#2176)
Jamie Guthrie
notifications at github.com
Sat Mar 16 15:52:39 UTC 2019
The problem is that `@note_comments` is nil, but in the view, a request is made for `@note_comments.first`, which then causes a crash.
So either the view needs to be rewritten to handle a case where there are no comments, or the view needs to not be called in the first place..
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2176#issuecomment-473552067
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190316/1cf53441/attachment.html>
More information about the rails-dev
mailing list