Fixed frontend crashing when database is empty

This commit is contained in:
Marcin Kurczewski
2014-10-10 18:13:46 +02:00
parent d2695e635c
commit 0811968718
23 changed files with 102 additions and 40 deletions

View File

@ -33,7 +33,7 @@ App.Presenters.HomePresenter = function(
templates.postContent = postContentTemplate;
globals = globalsResponse.json;
post = featuredPostResponse.json;
post = featuredPostResponse.json.id ? featuredPostResponse.json : null;
render();
loaded();