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

Fixed a bug with the frontpage when there are no news in the database #145

Merged
merged 1 commit into from
Feb 12, 2014
Merged

Conversation

marcofiset
Copy link
Contributor

I had a "No data received" error from '/' and '/news' pages, although the rest of the application worked properly. The bug happens when there are no news items, since the rendering is done inside of the _.each() callback.

@marcofiset marcofiset mentioned this pull request Feb 12, 2014
@marcofiset
Copy link
Contributor Author

This is a quick and dirty fix. I'm now looking for a way to rewrite the code of the frontpage so it does not rely on an ugly counter variable inside the _.each loop to do the rendering.

@marcofiset
Copy link
Contributor Author

I understand that the live version will never have this problem, since there are many news already, but it has been a problem for me when trying to setup my local installation of the project. I'm pretty sure other people experienced the same problem.

megamattron pushed a commit that referenced this pull request Feb 12, 2014
@megamattron megamattron merged commit 1d6b7c6 into larvalabs:master Feb 12, 2014
@megamattron
Copy link
Member

Makes sense. Thanks! You should have access now.

@marcofiset
Copy link
Contributor Author

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants